Apply suggestion to lib/pleroma/web/activity_pub/views/user_view.ex

This commit is contained in:
rinpatch 2019-09-25 13:38:45 +00:00
parent cfd9f73f0d
commit 4c6e5639d3
1 changed files with 2 additions and 3 deletions

View File

@ -235,15 +235,14 @@ def render("activity_collection_page.json", %{activities: activities, iri: iri})
}
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