From 175b63c02c1e6f0f62fce3f8f38720f50f7a5538 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 23 Jun 2022 00:51:41 +0200 Subject: [PATCH] double "view more" button threshold --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 4fc0f0659..fbe542042 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -322,7 +322,7 @@ def viewmore(v, pid, sort, offset): comments2.append(comment) ids.add(comment.id) count += g.db.query(Comment).filter_by(parent_submission=post.id, top_comment_id=comment.id).count() + 1 - if count > 50: break + if count > 100: break else: for comment in comments: comments2.append(comment)