From e73fd9b370b9679a0ab424a0bd44f262a21a4697 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 20 Dec 2023 09:24:48 +0100 Subject: [PATCH] fix(activitypub): make relay outbox events ordered by desc publication date Signed-off-by: Thomas Citharel --- lib/federation/activity_pub/activity_pub.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/federation/activity_pub/activity_pub.ex b/lib/federation/activity_pub/activity_pub.ex index 12ab02376..6a23293db 100644 --- a/lib/federation/activity_pub/activity_pub.ex +++ b/lib/federation/activity_pub/activity_pub.ex @@ -135,7 +135,7 @@ defmodule Mobilizon.Federation.ActivityPub do %Page{total: total_events, elements: events} = if actor_id == relay_actor_id do - Events.list_public_local_events(page, limit) + Events.list_public_local_events(page, limit, :publish_at, :desc) else Events.list_public_events_for_actor(actor, page, limit) end