From 977ffa20f4ac11bf0986e1887b9a524e366cea6b Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 9 May 2019 10:03:33 +0200 Subject: [PATCH] FIX: variable is different from key (#7512) --- app/assets/javascripts/discourse/models/composer.js.es6 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; }