mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: topic events not rendered in infinitescroll
This commit is contained in:
@@ -207,7 +207,8 @@ define('forum/topic/posts', [
|
|||||||
app.parseAndTranslate('topic', 'posts', Object.assign({}, ajaxify.data, data), function (html) {
|
app.parseAndTranslate('topic', 'posts', Object.assign({}, ajaxify.data, data), function (html) {
|
||||||
html = html.filter(function () {
|
html = html.filter(function () {
|
||||||
const pid = $(this).attr('data-pid');
|
const pid = $(this).attr('data-pid');
|
||||||
return pid && $('[component="post"][data-pid="' + pid + '"]').length === 0;
|
const isPost = $(this).is('[component="post"]');
|
||||||
|
return !isPost || (pid && $('[component="post"][data-pid="' + pid + '"]').length === 0);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (after) {
|
if (after) {
|
||||||
|
|||||||
Reference in New Issue
Block a user