Skip to content

A platform for community discussion. Free, open, simple.

FIX: variable is different from key (#7512)

Joffrey JAFFEUX977ffa20f4ac
diff --git a/app/assets/javascripts/discourse/models/composer.js.es6 b/app/assets/javascripts/discourse/models/composer.js.es6
index 5182f87e4e9..a4a6ec9532e 100644
--- a/app/assets/javascripts/discourse/models/composer.js.es6
+++ b/app/assets/javascripts/discourse/models/composer.js.es6
@@ -948,7 +948,7 @@ const Composer = RestModel.extend({
this._clearingStatus = null;
}
- const data = this.getProperties(
+ let data = this.getProperties(
"reply",
"action",
"title",
@@ -957,13 +957,14 @@ const Composer = RestModel.extend({
"archetypeId",
"whisper",
"metaData",
- "usernames",
"composerTime",
"typingTime",
"tags",
"noBump"
);
+ data = Object.assign(data, { usernames: this.targetUsernames });
+
if (this.get("post.id") && !Ember.isEmpty(this.originalText)) {
data.originalText = this.originalText;
}