mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
fix: handle start=0 stop=0 for topics.getTopicPosts
add more tests
This commit is contained in:
@@ -261,7 +261,7 @@ define('forum/topic/posts', [
|
||||
|
||||
infinitescroll.loadMore('topics.loadMore', {
|
||||
tid: tid,
|
||||
after: after,
|
||||
after: after + (direction > 0 ? 1 : 0),
|
||||
count: config.postsPerPage,
|
||||
direction: direction,
|
||||
topicPostSort: config.topicPostSort,
|
||||
|
||||
Reference in New Issue
Block a user