From e07b3d24426d9aca4fb72182c91467c67c4ee754 Mon Sep 17 00:00:00 2001 From: Lain Soykaf Date: Thu, 25 Dec 2025 12:54:09 +0400 Subject: [PATCH] ObjectView: Make the first reply collection a page, so it shows the actual items. --- lib/pleroma/web/activity_pub/views/object_view.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pleroma/web/activity_pub/views/object_view.ex b/lib/pleroma/web/activity_pub/views/object_view.ex index 9619658fa..a89036d10 100644 --- a/lib/pleroma/web/activity_pub/views/object_view.ex +++ b/lib/pleroma/web/activity_pub/views/object_view.ex @@ -106,7 +106,8 @@ defmodule Pleroma.Web.ActivityPub.ObjectView do defp map_reply_collection_items(items), do: Enum.map(items, fn %{ap_id: ap_id} -> ap_id end) defp reply_collection_first_pagination(items, %{conn: %Plug.Conn{} = conn}) do - ControllerHelper.get_pagination_fields(conn, items, %{"page" => true}, :asc) + pagination = ControllerHelper.get_pagination_fields(conn, items, %{"page" => true}, :asc) + Map.put(pagination, "id", Phoenix.Controller.current_url(conn, %{"page" => true})) end defp reply_collection_first_pagination(items, %{render_params: %{object_ap_id: object_ap_id}}) do