forked from AkkomaGang/akkoma
activitypub: user view: remove totalInbox from user inbox view
It is not really feasible to quickly calculate the totalItems value and it shouldn't be trusted anyway.
This commit is contained in:
parent
bc9e5e6b65
commit
ee2fa1a314
1 changed files with 0 additions and 2 deletions
|
@ -224,7 +224,6 @@ def render("inbox.json", %{user: user, max_id: max_qid}) do
|
||||||
"id" => "#{iri}?max_id=#{max_id}",
|
"id" => "#{iri}?max_id=#{max_id}",
|
||||||
"type" => "OrderedCollectionPage",
|
"type" => "OrderedCollectionPage",
|
||||||
"partOf" => iri,
|
"partOf" => iri,
|
||||||
"totalItems" => -1,
|
|
||||||
"orderedItems" => collection,
|
"orderedItems" => collection,
|
||||||
"next" => "#{iri}?max_id=#{min_id}"
|
"next" => "#{iri}?max_id=#{min_id}"
|
||||||
}
|
}
|
||||||
|
@ -233,7 +232,6 @@ def render("inbox.json", %{user: user, max_id: max_qid}) do
|
||||||
%{
|
%{
|
||||||
"id" => iri,
|
"id" => iri,
|
||||||
"type" => "OrderedCollection",
|
"type" => "OrderedCollection",
|
||||||
"totalItems" => -1,
|
|
||||||
"first" => page
|
"first" => page
|
||||||
}
|
}
|
||||||
|> Map.merge(Utils.make_json_ld_header())
|
|> Map.merge(Utils.make_json_ld_header())
|
||||||
|
|
Loading…
Reference in a new issue