FIX: variable is different from key (#7512)

FIX: variable is different from key (#7512)

diff --git a/app/assets/javascripts/discourse/models/composer.js.es6 b/app/assets/javascripts/discourse/models/composer.js.es6
index 5182f87..a4a6ec9 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;
     }

GitHub sha: 977ffa20

1 Like