forked from MarseyWorld/MarseyWorld
only show profile-pinned posts in the default sort
parent
a18c3cea20
commit
bf260330df
|
@ -704,7 +704,7 @@ def u_username(username, v=None):
|
||||||
next_exists = (len(ids) > PAGE_SIZE)
|
next_exists = (len(ids) > PAGE_SIZE)
|
||||||
ids = ids[:PAGE_SIZE]
|
ids = ids[:PAGE_SIZE]
|
||||||
|
|
||||||
if page == 1:
|
if page == 1 and sort == 'new':
|
||||||
sticky = []
|
sticky = []
|
||||||
sticky = g.db.query(Submission).filter_by(is_pinned=True, author_id=u.id, is_banned=False).all()
|
sticky = g.db.query(Submission).filter_by(is_pinned=True, author_id=u.id, is_banned=False).all()
|
||||||
if sticky:
|
if sticky:
|
||||||
|
|
Loading…
Reference in New Issue