fix(activitypub): make relay outbox events ordered by desc publication date
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
31411bfc03
commit
e73fd9b370
|
@ -135,7 +135,7 @@ defmodule Mobilizon.Federation.ActivityPub do
|
||||||
|
|
||||||
%Page{total: total_events, elements: events} =
|
%Page{total: total_events, elements: events} =
|
||||||
if actor_id == relay_actor_id do
|
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
|
else
|
||||||
Events.list_public_events_for_actor(actor, page, limit)
|
Events.list_public_events_for_actor(actor, page, limit)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue