A platform for community discussion. Free, open, simple.
FIX: 404 error when editing an expanded reply (#12504)
Penar Musarajee17ca9dc66b
diff --git a/app/assets/javascripts/discourse/app/widgets/post.js b/app/assets/javascripts/discourse/app/widgets/post.jsindex 0b0bf69f808..47adaa8f5bc 100644--- a/app/assets/javascripts/discourse/app/widgets/post.js+++ b/app/assets/javascripts/discourse/app/widgets/post.js@@ -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;});});