mirror of https://github.com/LemmyNet/lemmy.git
Specify order for activities query (fixes #1436)
parent
6f683682c3
commit
13a949d9ec
|
@ -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 New Issue