From 43836652e016f9c41f2776558bfa73d09404864d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 23 Jun 2022 21:47:00 +0200 Subject: [PATCH] double viewmore threshold on old threads --- 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 b9c0ae3ee..9588ef4ef 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -222,7 +222,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, parent_comment_id=comment.id).count() + 1 - if count > 10: break + if count > 20: break if len(comments) == len(comments2): offset = 0 else: offset = 1 @@ -328,7 +328,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, parent_comment_id=comment.id).count() + 1 - if count > 10: break + if count > 20: break if len(comments) == len(comments2): offset = 0 else: offset += 1