From 6dcf3fde2dd7afbb9e2af4f233d2dae01af96b3a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 25 Jun 2022 02:18:06 +0200 Subject: [PATCH] reduce viewmore threshold to 100 again --- files/routes/posts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index e95f8182e..dfbebf937 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -218,7 +218,7 @@ def post_id(pid, anything=None, v=None, sub=None): 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 > 150: break + if count > 100: break else: for comment in comments: comments2.append(comment) @@ -324,7 +324,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 > 150: break + if count > 100: break else: for comment in comments: comments2.append(comment)