Specify order for activities query (fixes #1436)
This commit is contained in:
parent
6f683682c3
commit
13a949d9ec
1 changed files with 2 additions and 1 deletions
|
@ -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)?;
|
||||
|
|
Loading…
Reference in a new issue