fix(feeds): make sure posts for feeds are ordered by publication date desc
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -97,7 +97,7 @@ defmodule Mobilizon.Service.Export.Common do
|
||||
@spec fetch_instance_public_content(integer()) :: {:ok, list(Event.t()), list(Post.t())}
|
||||
def fetch_instance_public_content(limit) do
|
||||
%Page{elements: events} = Events.list_public_local_events(1, limit, :begins_on, :desc)
|
||||
%Page{elements: posts} = Posts.list_public_local_posts(1, limit)
|
||||
%Page{elements: posts} = Posts.list_public_local_posts(1, limit, :publish_at, :desc)
|
||||
{:ok, events, posts}
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user