forked from rDrama/rDrama
master
parent
ab310cec2d
commit
9a1657c79e
|
@ -114,7 +114,6 @@ def post_id(pid, anything=None, v=None):
|
||||||
|
|
||||||
if not (v and v.shadowbanned) and not (v and v.admin_level == 6):
|
if not (v and v.shadowbanned) and not (v and v.admin_level == 6):
|
||||||
shadowbanned = g.db.query(User.id).filter(User.shadowbanned == False).subquery()
|
shadowbanned = g.db.query(User.id).filter(User.shadowbanned == False).subquery()
|
||||||
|
|
||||||
comments = comments.filter(Comment.author_id.notin_(shadowbanned))
|
comments = comments.filter(Comment.author_id.notin_(shadowbanned))
|
||||||
|
|
||||||
if v.admin_level >=4:
|
if v.admin_level >=4:
|
||||||
|
|
Loading…
Reference in New Issue