A platform for community discussion. Free, open, simple.
FIX: Use the right property for post ID.
Bianca Nenciu91ff8684fd65
diff --git a/app/assets/javascripts/discourse/models/composer.js.es6 b/app/assets/javascripts/discourse/models/composer.js.es6index 620231cf7b2..7e4f38a5854 100644--- a/app/assets/javascripts/discourse/models/composer.js.es6+++ b/app/assets/javascripts/discourse/models/composer.js.es6@@ -955,7 +955,6 @@ const Composer = RestModel.extend({"action","title","categoryId",- "postId","archetypeId","whisper","metaData",@@ -965,9 +964,12 @@ const Composer = RestModel.extend({"noBump");- data = Object.assign(data, { usernames: this.targetUsernames });+ data = Object.assign(data, {+ usernames: this.targetUsernames,+ postId: this.get("post.id")+ });- if (this.get("post.id") && !Ember.isEmpty(this.originalText)) {+ if (data.postId && !Ember.isEmpty(this.originalText)) {data.originalText = this.originalText;}