mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
Fix atom feed pagination.
This commit is contained in:
parent
2c1c221301
commit
46f63ea8af
1 changed files with 4 additions and 1 deletions
|
@ -23,7 +23,10 @@ defmodule Pleroma.Web.OStatus.OStatusController do
|
|||
def feed(conn, %{"nickname" => nickname} = params) do
|
||||
user = User.get_cached_by_nickname(nickname)
|
||||
|
||||
activities = ActivityPub.fetch_public_activities(%{"whole_db" => true, "actor_id" => user.ap_id})
|
||||
query_params = Map.take(params, ["max_id"])
|
||||
|> Map.merge(%{"whole_db" => true, "actor_id" => user.ap_id})
|
||||
|
||||
activities = ActivityPub.fetch_public_activities(query_params)
|
||||
|> Enum.reverse
|
||||
|
||||
response = user
|
||||
|
|
Loading…
Reference in a new issue