This commit is contained in:
Aevann1 2021-11-02 13:54:04 -07:00
parent b25e33a094
commit 8dad770d88
9 changed files with 31 additions and 31 deletions

View file

@ -126,7 +126,7 @@ def post_id(pid, anything=None, v=None):
votes.c.vote_type,
blocking.c.id,
blocked.c.id,
)
).options(lazyload('*'))
if not (v and v.shadowbanned) and not (v and v.admin_level == 6):
shadowbanned = [x[0] for x in g.db.query(User.id).options(lazyload('*')).filter(User.shadowbanned != None).all()]