aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2019-02-14 03:01:39 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2019-02-14 03:01:39 +0000
commitee2fa1a31475259575a267e67cf5d7da04a30616 (patch)
treedc319e56f2338204b91bd2b045fd1e811d0968d7 /lib
parentbc9e5e6b65abb9c7280c1e6a5c521bdeeba761f8 (diff)
downloadpleroma-ee2fa1a31475259575a267e67cf5d7da04a30616.tar.gz
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/activity_pub/views/user_view.ex2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/pleroma/web/activity_pub/views/user_view.ex b/lib/pleroma/web/activity_pub/views/user_view.ex
index b363a3dc4..1e16f7ebb 100644
--- a/lib/pleroma/web/activity_pub/views/user_view.ex
+++ b/lib/pleroma/web/activity_pub/views/user_view.ex
@@ -224,7 +224,6 @@ defmodule Pleroma.Web.ActivityPub.UserView do
"id" => "#{iri}?max_id=#{max_id}",
"type" => "OrderedCollectionPage",
"partOf" => iri,
- "totalItems" => -1,
"orderedItems" => collection,
"next" => "#{iri}?max_id=#{min_id}"
}
@@ -233,7 +232,6 @@ defmodule Pleroma.Web.ActivityPub.UserView do
%{
"id" => iri,
"type" => "OrderedCollection",
- "totalItems" => -1,
"first" => page
}
|> Map.merge(Utils.make_json_ld_header())