fd
This commit is contained in:
parent
d196610132
commit
14b96544c1
1 changed files with 5 additions and 0 deletions
|
@ -121,6 +121,11 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
|
|||
|
||||
posts = posts.filter_by(is_banned=False,stickied=False,private=False).filter(Submission.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 = g.db.query(
|
||||
UserBlock.target_id).filter_by(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue