remotes/1693045480750635534/spooky-22
Aevann1 2021-11-16 05:34:37 +02:00
parent b0fd73b7f1
commit 2fb605aca9
1 changed files with 2 additions and 5 deletions

View File

@ -367,13 +367,10 @@ def comment_idlist(page=1, v=None, nsfw=False, sort="new", t="all"):
UserBlock.user_id).filter_by(
target_id=v.id).all()]
comments = comments.filter(
Comment.author_id.notin_(blocking),
Comment.author_id.notin_(blocked)
)
comments = comments.filter(Comment.author_id.notin_(blocking), Comment.author_id.notin_(blocked))
if not v or not v.admin_level > 1:
comments = comments.filter_by(is_banned=False).filter(Comment.deleted_utc == 0)
comments = comments.filter(Comment.is_banned==False, Comment.deleted_utc == 0)
now = int(time.time())
if t == 'hour':