forked from forks/microblog.pub
Ensure pinned posts appear on front page before others
This commit is contained in:
parent
0ef2f1f89d
commit
c740813b57
1 changed files with 1 additions and 0 deletions
|
@ -281,6 +281,7 @@ async def index(
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
.order_by(models.OutboxObject.is_pinned.desc())
|
||||||
.order_by(models.OutboxObject.ap_published_at.desc())
|
.order_by(models.OutboxObject.ap_published_at.desc())
|
||||||
.offset(page_offset)
|
.offset(page_offset)
|
||||||
.limit(page_size)
|
.limit(page_size)
|
||||||
|
|
Loading…
Reference in a new issue