Specify order for activities query (fixes #1436)

pull/1442/head
Felix Ableitner 2021-02-18 16:15:52 +01:00
parent 6f683682c3
commit 13a949d9ec
1 changed files with 2 additions and 1 deletions

View File

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