]> Untitled Git - lemmy.git/commitdiff
Order outbox by published, not id
authorFelix Ableitner <me@nutomic.com>
Fri, 19 Feb 2021 14:59:06 +0000 (15:59 +0100)
committerFelix Ableitner <me@nutomic.com>
Fri, 19 Feb 2021 14:59:06 +0000 (15:59 +0100)
crates/db_queries/src/source/activity.rs

index ad71e88dcc8ffde30a047bf97d0dcd84e221c094..59e1754aa40f169dbec4621545bb423e8718df66 100644 (file)
@@ -111,7 +111,7 @@ impl Activity_ for Activity {
           .sql(" AND activity.data -> 'object' -> 'object' ->> 'type' = 'Page'")
           .sql(" AND activity.data ->> 'actor' = ")
           .bind::<Text, _>(community_actor_id)
-          .sql(" ORDER BY activity.id DESC"),
+          .sql(" ORDER BY activity.published DESC"),
       )
       .limit(20)
       .get_results(conn)?;