This commit is contained in:
Aevann1 2021-11-18 22:02:26 +02:00
parent 0e246b0267
commit 59bc1ec102
17 changed files with 95 additions and 186 deletions

View file

@ -92,11 +92,11 @@ def searchposts(v):
)
)
if not(v and v.admin_level > 1):
posts = posts.join(User, User.id==Submission.author_id).filter(User.is_private == False, Submission.deleted_utc == 0, Submission.is_banned == False)
if not (v and v.admin_level > 1):
posts.filter(Submission.deleted_utc == 0, Submission.is_banned == False)
if not (v and v.eye): posts = posts.join(User, User.id==Submission.author_id).filter(User.is_private == False)
if v and v.admin_level > 1:
pass
if v and v.admin_level > 1: pass
elif v:
blocking = [x[0] for x in g.db.query(
UserBlock.target_id).filter_by(