mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Use the right property for post ID.
This commit is contained in:
parent
67d8ceedf1
commit
91ff8684fd
@ -955,7 +955,6 @@ const Composer = RestModel.extend({
|
|||||||
"action",
|
"action",
|
||||||
"title",
|
"title",
|
||||||
"categoryId",
|
"categoryId",
|
||||||
"postId",
|
|
||||||
"archetypeId",
|
"archetypeId",
|
||||||
"whisper",
|
"whisper",
|
||||||
"metaData",
|
"metaData",
|
||||||
@ -965,9 +964,12 @@ const Composer = RestModel.extend({
|
|||||||
"noBump"
|
"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;
|
data.originalText = this.originalText;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user