forked from rDrama/rDrama
master
parent
cfab8f48f5
commit
15486f6d5f
|
@ -145,9 +145,9 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
|
|||
Submission.author_id.notin_(blocked)
|
||||
)
|
||||
|
||||
# if not (v and v.changelogsub):
|
||||
# posts=posts.join(Submission.submission_aux)
|
||||
# posts=posts.filter(not_(SubmissionAux.title.ilike(f'[changelog]%')))
|
||||
if not (v and v.changelogsub):
|
||||
posts=posts.join(Submission.submission_aux)
|
||||
posts=posts.filter(not_(SubmissionAux.title.ilike(f'[changelog]%')))
|
||||
|
||||
if v and filter_words:
|
||||
for word in filter_words:
|
||||
|
@ -162,9 +162,7 @@ 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 v and v.shadowbanned:
|
||||
posts = posts.join(Submission.author).filter(or_(User.shadowbanned == False, User.id == v.id))
|
||||
else:
|
||||
if not (v and v.shadowbanned):
|
||||
posts = posts.join(Submission.author).filter(User.shadowbanned == False)
|
||||
|
||||
if sort == "hot":
|
||||
|
|
Loading…
Reference in New Issue