forked from rDrama/rDrama
fd4
parent
e4ab1f2202
commit
d5006bf296
|
@ -159,7 +159,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
|
||||||
|
|
||||||
if not (v and v.shadowbanned):
|
if not (v and v.shadowbanned):
|
||||||
posts=posts.join(Submission.author)
|
posts=posts.join(Submission.author)
|
||||||
posts=posts.filter(Submission.author.shadowbanned == False)
|
posts=posts.filter(User.shadowbanned == False)
|
||||||
|
|
||||||
if sort == "hot":
|
if sort == "hot":
|
||||||
posts = sorted(posts.all(), key=lambda x: x.hotscore, reverse=True)
|
posts = sorted(posts.all(), key=lambda x: x.hotscore, reverse=True)
|
||||||
|
|
Loading…
Reference in New Issue