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 13e7753382
commit 31421916c0

View File

@ -201,15 +201,14 @@ defmodule Pleroma.Web.ActivityPub.UserView do
} }
end end
page = %{ %{
"id" => "#{iri}?max_id=#{max_id}&page=true", "id" => "#{iri}?max_id=#{max_id}&page=true",
"type" => "OrderedCollectionPage", "type" => "OrderedCollectionPage",
"partOf" => iri, "partOf" => iri,
"orderedItems" => collection, "orderedItems" => collection,
"next" => "#{iri}?max_id=#{min_id}&page=true" "next" => "#{iri}?max_id=#{min_id}&page=true"
} }
|> Map.merge(Utils.make_json_ld_header())
page |> Map.merge(Utils.make_json_ld_header())
end end
def collection(collection, iri, page, show_items \\ true, total \\ nil) do def collection(collection, iri, page, show_items \\ true, total \\ nil) do