logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/
commit: e07b3d24426d9aca4fb72182c91467c67c4ee754
parent 8e94c5ca3835c67b223a320f5d3ba13019f0cb9d
Author: Lain Soykaf <lain@lain.com>
Date:   Thu, 25 Dec 2025 12:54:09 +0400

ObjectView: Make the first reply collection a page, so it shows the actual items.

Diffstat:

Mlib/pleroma/web/activity_pub/views/object_view.ex3++-
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 @@ -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