FIX: Jump to reply button in post stream was not working (#14123)
This commit is contained in:
parent
c2f87e0a36
commit
45a166b6ef
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue