mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
closes #4404
This commit is contained in:
@@ -147,6 +147,12 @@ define('forum/topic/posts', [
|
|||||||
$(window).trigger('action:posts.loading', {posts: data.posts, after: after, before: before});
|
$(window).trigger('action:posts.loading', {posts: data.posts, after: after, before: before});
|
||||||
|
|
||||||
app.parseAndTranslate('topic', 'posts', data, function(html) {
|
app.parseAndTranslate('topic', 'posts', data, function(html) {
|
||||||
|
|
||||||
|
html = html.filter(function(index, el) {
|
||||||
|
var pid = $(this).attr('data-pid');
|
||||||
|
return pid && $('[component="post"][data-pid="' + pid + '"]').length === 0;
|
||||||
|
});
|
||||||
|
|
||||||
if (after) {
|
if (after) {
|
||||||
html.insertAfter(after);
|
html.insertAfter(after);
|
||||||
} else if (before) {
|
} else if (before) {
|
||||||
|
|||||||
Reference in New Issue
Block a user