FIX: Use the right property for post ID.

This commit is contained in:
Bianca Nenciu 2019-05-28 22:00:08 +03:00
parent 67d8ceedf1
commit 91ff8684fd
1 changed files with 5 additions and 3 deletions

View File

@ -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;
}