mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-27 02:55:48 +01:00
Apply suggestion to lib/pleroma/web/activity_pub/views/user_view.ex
This commit is contained in:
parent
f2880d7d29
commit
f92d7d52c2
@ -238,15 +238,14 @@ defmodule Pleroma.Web.ActivityPub.UserView do
|
||||
}
|
||||
end
|
||||
|
||||
page = %{
|
||||
%{
|
||||
"id" => "#{iri}?max_id=#{max_id}&page=true",
|
||||
"type" => "OrderedCollectionPage",
|
||||
"partOf" => iri,
|
||||
"orderedItems" => collection,
|
||||
"next" => "#{iri}?max_id=#{min_id}&page=true"
|
||||
}
|
||||
|
||||
page |> Map.merge(Utils.make_json_ld_header())
|
||||
|> Map.merge(Utils.make_json_ld_header())
|
||||
end
|
||||
|
||||
def collection(collection, iri, page, show_items \\ true, total \\ nil) do
|
||||
|
Loading…
Reference in New Issue
Block a user