forked from AkkomaGang/akkoma
Apply suggestion to lib/pleroma/web/activity_pub/views/user_view.ex
This commit is contained in:
parent
f2880d7d29
commit
f92d7d52c2
1 changed files with 2 additions and 3 deletions
|
@ -238,15 +238,14 @@ def render("activity_collection_page.json", %{activities: activities, iri: iri})
|
||||||
}
|
}
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue