A platform for community discussion. Free, open, simple.
FIX: Jump to reply button in post stream was not working (#14123)
Osama Sayegh45a166b6efac
diff --git a/app/assets/javascripts/discourse/app/widgets/post.js b/app/assets/javascripts/discourse/app/widgets/post.jsindex a184f91a8f3..c7e3947caff 100644--- a/app/assets/javascripts/discourse/app/widgets/post.js+++ b/app/assets/javascripts/discourse/app/widgets/post.js@@ -499,7 +499,16 @@ createWidget("post-contents", {.then((posts) => {this.state.repliesBelow = posts.map((p) => {let result = transformWithCallbacks(p);- result.shareUrl = `${topicUrl}/${p.post_number}`;++ // these would conflict with computed properties with identical names+ // in the post model if we kept them.+ delete result.new_user;+ delete result.deleted;+ delete result.shareUrl;+ delete result.firstPost;+ delete result.usernameUrl;++ result.customShare = `${topicUrl}/${p.post_number}`;result.asPost = this.store.createRecord("post", result);return result;});