mirror of
https://github.com/discourse/discourse.git
synced 2025-04-02 05:42:30 +08: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) => {
|
this.state.repliesBelow = posts.map((p) => {
|
||||||
let result = transformWithCallbacks(p);
|
let result = transformWithCallbacks(p);
|
||||||
result.shareUrl = `${topicUrl}/${p.post_number}`;
|
result.shareUrl = `${topicUrl}/${p.post_number}`;
|
||||||
result.asPost = this.store.createRecord("post", p);
|
result.asPost = this.store.createRecord("post", result);
|
||||||
return result;
|
return result;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -684,7 +684,7 @@ createWidget("post-article", {
|
|||||||
this.state.repliesAbove = posts.map((p) => {
|
this.state.repliesAbove = posts.map((p) => {
|
||||||
let result = transformWithCallbacks(p);
|
let result = transformWithCallbacks(p);
|
||||||
result.shareUrl = `${topicUrl}/${p.post_number}`;
|
result.shareUrl = `${topicUrl}/${p.post_number}`;
|
||||||
result.asPost = this.store.createRecord("post", p);
|
result.asPost = this.store.createRecord("post", result);
|
||||||
return result;
|
return result;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user