fd
This commit is contained in:
parent
e74670cc3d
commit
2187448e0e
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ 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 == True).subquery()
|
shadowbanned = g.db.query(User.id).filter(User.shadowbanned == True).subquery()
|
||||||
comments = g.db.query(Comment).filter(Comment.author_id.notin_(shadowbanned))
|
comments = comments.filter(Comment.author_id.notin_(shadowbanned))
|
||||||
|
|
||||||
if v.admin_level >=4:
|
if v.admin_level >=4:
|
||||||
comments=comments.options(joinedload(Comment.oauth_app))
|
comments=comments.options(joinedload(Comment.oauth_app))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue