mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
FIX: 404 error when editing an expanded reply (#12504)
This commit is contained in:
parent
16073a22a1
commit
ee17ca9dc6
@ -486,7 +486,7 @@ createWidget("post-contents", {
|
||||
this.state.repliesBelow = posts.map((p) => {
|
||||
let result = transformWithCallbacks(p);
|
||||
result.shareUrl = `${topicUrl}/${p.post_number}`;
|
||||
result.asPost = this.store.createRecord("post", p);
|
||||
result.asPost = this.store.createRecord("post", result);
|
||||
return result;
|
||||
});
|
||||
});
|
||||
@ -684,7 +684,7 @@ createWidget("post-article", {
|
||||
this.state.repliesAbove = posts.map((p) => {
|
||||
let result = transformWithCallbacks(p);
|
||||
result.shareUrl = `${topicUrl}/${p.post_number}`;
|
||||
result.asPost = this.store.createRecord("post", p);
|
||||
result.asPost = this.store.createRecord("post", result);
|
||||
return result;
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user