forked from rDrama/rDrama
1
0
Fork 0

reduce viewmore threshold to 100 again

master
Aevann1 2022-06-25 02:18:06 +02:00
parent 149db9ebe3
commit 6dcf3fde2d
1 changed files with 2 additions and 2 deletions

View File

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