fdsfsd
This commit is contained in:
parent
ba17afea53
commit
834c242938
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
|
||||||
blocked = [x[0] for x in g.db.query(UserBlock.user_id).filter_by(target_id=v.id).all()]
|
blocked = [x[0] for x in g.db.query(UserBlock.user_id).filter_by(target_id=v.id).all()]
|
||||||
pins = pins.filter(Submission.author_id.notin_(blocking), Submission.author_id.notin_(blocked))
|
pins = pins.filter(Submission.author_id.notin_(blocking), Submission.author_id.notin_(blocked))
|
||||||
|
|
||||||
if page == 1: posts = pins.all() + posts
|
if page == 1 and not gt and not lt: posts = pins.all() + posts
|
||||||
|
|
||||||
if ids_only: posts = [x[0] for x in posts]
|
if ids_only: posts = [x[0] for x in posts]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue