This commit is contained in:
Aevann1 2021-10-01 08:26:59 +02:00
parent 43e04814c7
commit 5884d71a5c
9 changed files with 8 additions and 96 deletions

View file

@ -169,11 +169,6 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
posts = posts.filter_by(is_banned=False, stickied=None, private=False, deleted_utc = 0)
if v:
posts = posts.filter(or_(Submission.processing == False, Submission.author_id == v.id))
else:
posts = posts.filter_by(processing=False)
if v and v.admin_level == 0:
blocking = [x[0] for x in g.db.query(
UserBlock.target_id).filter_by(