forked from MarseyWorld/MarseyWorld
master
parent
9a1657c79e
commit
b1ff2c5086
|
@ -112,9 +112,8 @@ def post_id(pid, anything=None, v=None):
|
|||
blocked.c.id,
|
||||
)
|
||||
|
||||
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()
|
||||
comments = comments.filter(Comment.author_id.notin_(shadowbanned))
|
||||
shadowbanned = g.db.query(User.id).filter(User.shadowbanned == False).subquery()
|
||||
comments = comments.filter(Comment.author_id.notin_(shadowbanned))
|
||||
|
||||
if v.admin_level >=4:
|
||||
comments=comments.options(joinedload(Comment.oauth_app))
|
||||
|
|
Loading…
Reference in New Issue