From 56d4c7410a7e099ea918001c2f8aff67275411d7 Mon Sep 17 00:00:00 2001 From: Marco Realacci Date: Wed, 18 Jan 2023 00:07:24 +0100 Subject: [PATCH] Fix show more comments appearing too many times --- webui/src/components/PostCard.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webui/src/components/PostCard.vue b/webui/src/components/PostCard.vue index d287261..a218a6f 100644 --- a/webui/src/components/PostCard.vue +++ b/webui/src/components/PostCard.vue @@ -64,7 +64,7 @@ export default { "/comments?limit=5&start_index=" + this.comments_start_idx).then(response => { // If there are no more comments, set the flag - if (response.data.length == 0) this.data_ended = true; + if (response.data.length == 0 || response.data.length < 5) this.data_ended = true; // Otherwise increment the start index else this.comments_start_idx += 5; @@ -167,7 +167,7 @@ export default {
- Mostra altro... + Show more comments...