double viewmore threshold on old threads

remotes/1693045480750635534/spooky-22
Aevann1 2022-06-23 21:47:00 +02:00
parent 2c1d1aceff
commit 43836652e0
1 changed files with 2 additions and 2 deletions

View File

@ -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