Fix "load more" button being greyed out falsely

This commit is contained in:
Max Nuding 2023-04-07 10:01:18 +02:00
parent 8428f6e70e
commit 95e9b8cabf
Signed by: phlaym
GPG Key ID: A06651BAB6777237

View File

@ -129,7 +129,7 @@ function loadOlderPosts() {
// There shouldn't be any duplicates, but better be safe than sorry // There shouldn't be any duplicates, but better be safe than sorry
data.posts = filterDuplicates(data.posts.concat(resp)); data.posts = filterDuplicates(data.posts.concat(resp));
// If we got less than we expected, there are no older posts available // If we got less than we expected, there are no older posts available
moreOlderPostsAvailable = resp.length < (filter.count ?? 20); moreOlderPostsAvailable = resp.length >= (filter.count ?? 20);
} else { } else {
moreOlderPostsAvailable = false; moreOlderPostsAvailable = false;
} }