Fix ICS feed missing events: order by "begins_on" DESC so that the latest events are always included
https://git.potsda.mn/potsda.mn/mobilizon/issues/37
This commit is contained in:
committed by
Thomas Citharel
parent
2fba6379f1
commit
31411bfc03
@@ -96,7 +96,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)
|
||||
%Page{elements: events} = Events.list_public_local_events(1, limit, :begins_on, :desc)
|
||||
%Page{elements: posts} = Posts.list_public_local_posts(1, limit)
|
||||
{:ok, events, posts}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user