From bf260330df4322fb3c1b8c3c07a0eee63249088a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 7 Nov 2022 13:27:40 +0200 Subject: [PATCH] only show profile-pinned posts in the default sort --- files/routes/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/users.py b/files/routes/users.py index 70b6aa99e..a1c93a014 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -704,7 +704,7 @@ def u_username(username, v=None): next_exists = (len(ids) > PAGE_SIZE) ids = ids[:PAGE_SIZE] - if page == 1: + if page == 1 and sort == 'new': sticky = [] sticky = g.db.query(Submission).filter_by(is_pinned=True, author_id=u.id, is_banned=False).all() if sticky: