From 0ceb5ebbde832e6fe0ea04eac66bc9d7ac2752c4 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Thu, 14 May 2015 22:03:15 +0930 Subject: [PATCH] Update the discussion's post relationship when a reply is added --- framework/core/js/forum/src/components/composer-reply.js | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/core/js/forum/src/components/composer-reply.js b/framework/core/js/forum/src/components/composer-reply.js index aa6f119b6..6f33c7d68 100644 --- a/framework/core/js/forum/src/components/composer-reply.js +++ b/framework/core/js/forum/src/components/composer-reply.js @@ -48,6 +48,7 @@ export default class ComposerReply extends ComposerBody { readTime: post.time(), 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 // in, then we can add the post to the end of the post stream.