Skip to content

Node.js based forum software built for the modern web

fix: use max

Barış Soner Uşaklı0a471b76b58a
diff --git a/public/src/modules/topicList.js b/public/src/modules/topicList.js
index 2458666498..ff3d67e8b0 100644
--- a/public/src/modules/topicList.js
+++ b/public/src/modules/topicList.js
@@ -247,7 +247,7 @@ define('topicList', [
}
if (!topicSelect.getSelectedTids().length) {
- infinitescroll.removeExtra(topicListEl.find('[component="category/topic"]'), direction, 60);
+ infinitescroll.removeExtra(topicListEl.find('[component="category/topic"]'), direction, Math.max(60, config.topicsPerPage * 3));
}
html.find('.timeago').timeago();