This commit is contained in:
Aevann1 2022-01-22 18:36:01 +02:00
parent 6c44398f30
commit 3ced4ca8dc
2 changed files with 3 additions and 4 deletions

View file

@ -813,9 +813,8 @@ def u_username_comments(username, v=None):
comments = g.db.query(Comment.id).filter(Comment.author_id == u.id, Comment.parent_submission != None)
if (not v) or (v.id != u.id and v.admin_level == 0):
comments = comments.filter(Comment.deleted_utc == 0)
comments = comments.filter(Comment.is_banned == False)
if not v or (v.id != u.id and v.admin_level == 0):
comments = comments.filter(Comment.deleted_utc == 0, Comment.is_banned == False, Comment.ghosts == None)
now = int(time.time())
if t == 'hour':