forked from rDrama/rDrama
master
parent
6863e32d82
commit
b2ed0fa5fe
|
@ -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…
Reference in New Issue