master
fireworks88 2021-09-12 07:42:42 +02:00
parent 6863e32d82
commit b2ed0fa5fe
1 changed files with 3 additions and 1 deletions

View File

@ -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":