Specify order for activities query (fixes #1436)

This commit is contained in:
Felix Ableitner 2021-02-18 16:15:52 +01:00
parent 6f683682c3
commit 13a949d9ec

View file

@ -110,7 +110,8 @@ impl Activity_ for Activity {
.sql(" AND activity.data -> 'object' ->> 'type' = 'Create'") .sql(" AND activity.data -> 'object' ->> 'type' = 'Create'")
.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"),
) )
.limit(20) .limit(20)
.get_results(conn)?; .get_results(conn)?;