From c740813b5735c5d820622080550a49072123a9c5 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Wed, 31 Aug 2022 15:58:15 +1000 Subject: [PATCH] Ensure pinned posts appear on front page before others --- app/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/main.py b/app/main.py index e29f2f3..fe4f9ec 100644 --- a/app/main.py +++ b/app/main.py @@ -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)