xz
This commit is contained in:
parent
559f90e6bd
commit
a924bf62be
1 changed files with 3 additions and 1 deletions
|
@ -162,7 +162,9 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
|
|||
if lt:
|
||||
posts = posts.filter(Submission.created_utc < lt)
|
||||
|
||||
if not v or v.shadowbanned:
|
||||
if v and v.shadowbanned:
|
||||
posts = posts.join(Submission.author).filter(or_(User.shadowbanned == False, User.id == v.id))
|
||||
else:
|
||||
posts = posts.join(Submission.author).filter(User.shadowbanned == False)
|
||||
|
||||
if sort == "hot":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue