Order outbox by published, not id

pull/1450/head
Felix Ableitner 2021-02-19 15:59:06 +01:00
parent 9845366a36
commit b593047fb1
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ impl Activity_ for Activity {
.sql(" AND activity.data -> 'object' -> 'object' ->> 'type' = 'Page'") .sql(" AND activity.data -> 'object' -> 'object' ->> 'type' = 'Page'")
.sql(" AND activity.data ->> 'actor' = ") .sql(" AND activity.data ->> 'actor' = ")
.bind::<Text, _>(community_actor_id) .bind::<Text, _>(community_actor_id)
.sql(" ORDER BY activity.id DESC"), .sql(" ORDER BY activity.published DESC"),
) )
.limit(20) .limit(20)
.get_results(conn)?; .get_results(conn)?;