forked from rDrama/rDrama
1
0
Fork 0

only show profile-pinned posts in the default sort

master
Aevann1 2022-11-07 13:27:40 +02:00
parent a18c3cea20
commit bf260330df
1 changed files with 1 additions and 1 deletions

View File

@ -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: