From e2d1b108500c35d771fcb2b41a1894e666aa5544 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 12 Oct 2021 07:41:04 +0200 Subject: [PATCH] fsdsd --- files/routes/front.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/front.py b/files/routes/front.py index 23405476dd..7a79f755b5 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -222,9 +222,9 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words=' if v and v.admin_level == 0: blocking = [x[0] for x in g.db.query(UserBlock.target_id).filter_by(user_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)).all() + pins = pins.filter(Submission.author_id.notin_(blocking), Submission.author_id.notin_(blocked)) - if page == 1: posts = pins + posts + if page == 1: posts = pins.all() + posts if ids_only: posts = [x[0] for x in posts]