From 46f63ea8afa2f1405934b7cae181bfad8a653de2 Mon Sep 17 00:00:00 2001 From: lain Date: Mon, 26 Mar 2018 09:51:43 +0200 Subject: [PATCH] Fix atom feed pagination. --- lib/pleroma/web/ostatus/ostatus_controller.ex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/pleroma/web/ostatus/ostatus_controller.ex b/lib/pleroma/web/ostatus/ostatus_controller.ex index cb435e031..7e71c156c 100644 --- a/lib/pleroma/web/ostatus/ostatus_controller.ex +++ b/lib/pleroma/web/ostatus/ostatus_controller.ex @@ -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 -- 2.45.2