kopia lustrzana https://github.com/Aonrud/ila-microblog.pub
Ensure pinned posts appear on front page before others
rodzic
0ef2f1f89d
commit
c740813b57
|
@ -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)
|
||||
|
|
Ładowanie…
Reference in New Issue