mirror of
https://github.com/flarum/core.git
synced 2025-07-26 03:01:22 +02:00
Update the discussion's post relationship when a reply is added
This commit is contained in:
@@ -48,6 +48,7 @@ export default class ComposerReply extends ComposerBody {
|
|||||||
readTime: post.time(),
|
readTime: post.time(),
|
||||||
readNumber: post.number()
|
readNumber: post.number()
|
||||||
});
|
});
|
||||||
|
discussion.data().links.posts.linkage.push({type: 'posts', id: post.id()});
|
||||||
|
|
||||||
// If we're currently viewing the discussion which this reply was made
|
// If we're currently viewing the discussion which this reply was made
|
||||||
// in, then we can add the post to the end of the post stream.
|
// in, then we can add the post to the end of the post stream.
|
||||||
|
Reference in New Issue
Block a user