Ensure pinned posts appear on front page before others

main
Miguel Jacq 2022-08-31 15:58:15 +10:00 committed by Thomas Sileo
parent 0ef2f1f89d
commit c740813b57
1 changed files with 1 additions and 0 deletions

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)