fix: handle start=0 stop=0 for topics.getTopicPosts

add more tests
This commit is contained in:
Barış Soner Uşaklı
2021-12-06 16:36:30 -05:00
parent 621c142f8e
commit 906dc5675e
4 changed files with 42 additions and 5 deletions

View File

@@ -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,