Node.js based forum software built for the modern web
fix: createNewPosts to build tpl with ajaxify.data
Julian Lam0b6ef61e4023
diff --git a/public/src/client/topic/posts.js b/public/src/client/topic/posts.jsindex b848d403ff..5f3b59c69c 100644--- a/public/src/client/topic/posts.js+++ b/public/src/client/topic/posts.js@@ -191,7 +191,7 @@ define('forum/topic/posts', [$(window).trigger('action:posts.loading', { posts: data.posts, after: after, before: before });- app.parseAndTranslate('topic', 'posts', data, function (html) {+ app.parseAndTranslate('topic', 'posts', Object.assign({}, ajaxify.data, data), function (html) {html = html.filter(function () {var pid = $(this).attr('data-pid');return pid && $('[component="post"][data-pid="' + pid + '"]').length === 0;