From: Felix Ableitner Date: Fri, 19 Feb 2021 14:59:06 +0000 (+0100) Subject: Order outbox by published, not id X-Git-Url: http://these/git/%22https:/lemmy.ml/u/Liwott/static/sneer-club-logo.svg?a=commitdiff_plain;h=b593047fb14e432a87e79e3f7cd8bb299f99a4e3;p=lemmy.git Order outbox by published, not id --- diff --git a/crates/db_queries/src/source/activity.rs b/crates/db_queries/src/source/activity.rs index ad71e88d..59e1754a 100644 --- a/crates/db_queries/src/source/activity.rs +++ b/crates/db_queries/src/source/activity.rs @@ -111,7 +111,7 @@ impl Activity_ for Activity { .sql(" AND activity.data -> 'object' -> 'object' ->> 'type' = 'Page'") .sql(" AND activity.data ->> 'actor' = ") .bind::(community_actor_id) - .sql(" ORDER BY activity.id DESC"), + .sql(" ORDER BY activity.published DESC"), ) .limit(20) .get_results(conn)?;