mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
committed by
GitHub
parent
1af34b43e3
commit
036f935fa9
@@ -127,7 +127,7 @@ function calculateStartStop(page, postIndex, settings) {
|
|||||||
let startSkip = 0;
|
let startSkip = 0;
|
||||||
|
|
||||||
if (!settings.usePagination) {
|
if (!settings.usePagination) {
|
||||||
if (postIndex !== 0) {
|
if (postIndex > 1) {
|
||||||
page = 1;
|
page = 1;
|
||||||
}
|
}
|
||||||
startSkip = Math.max(0, postIndex - Math.ceil(settings.postsPerPage / 2));
|
startSkip = Math.max(0, postIndex - Math.ceil(settings.postsPerPage / 2));
|
||||||
|
|||||||
Reference in New Issue
Block a user