mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-22 15:33:13 +01:00
fix: #10360, only take top level posts
This commit is contained in:
@@ -132,7 +132,7 @@ define('forum/topic/posts', [
|
|||||||
if (!isPreviousPostAdded && data.posts[0].selfPost) {
|
if (!isPreviousPostAdded && data.posts[0].selfPost) {
|
||||||
return ajaxify.go('post/' + data.posts[0].pid);
|
return ajaxify.go('post/' + data.posts[0].pid);
|
||||||
}
|
}
|
||||||
const repliesSelector = $('[component="post"]:not([data-index=0]), [component="topic/event"]');
|
const repliesSelector = $('[component="topic"]>[component="post"]:not([data-index=0]), [component="topic"]>[component="topic/event"]');
|
||||||
createNewPosts(data, repliesSelector, direction, false, function (html) {
|
createNewPosts(data, repliesSelector, direction, false, function (html) {
|
||||||
if (html) {
|
if (html) {
|
||||||
html.addClass('new');
|
html.addClass('new');
|
||||||
|
|||||||
Reference in New Issue
Block a user