1
0
mirror of https://git.sr.ht/~tsileo/microblog.pub synced 2025-06-05 21:59:23 +02:00

Ensure pinned posts appear on front page before others

This commit is contained in:
Miguel Jacq
2022-08-31 15:58:15 +10:00
committed by Thomas Sileo
parent 0ef2f1f89d
commit c740813b57

View File

@ -281,6 +281,7 @@ async def index(
),
),
)
.order_by(models.OutboxObject.is_pinned.desc())
.order_by(models.OutboxObject.ap_published_at.desc())
.offset(page_offset)
.limit(page_size)