aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2019-02-14 03:02:45 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2019-02-14 03:02:45 +0000
commit6542b8629203cd3b3ef4f0a08a5ad67451366a72 (patch)
tree9e51b15d22769fa4de0ac069c4ec50810aef6f2c
parentee2fa1a31475259575a267e67cf5d7da04a30616 (diff)
downloadpleroma-6542b8629203cd3b3ef4f0a08a5ad67451366a72.tar.gz
activitypub: user view: remove totalItems from user outbox
(this is based on a counter in User.Info, but the counter is not reliable.)
-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 1e16f7ebb..506fa5ea3 100644
--- a/lib/pleroma/web/activity_pub/views/user_view.ex
+++ b/lib/pleroma/web/activity_pub/views/user_view.ex
@@ -177,7 +177,6 @@ defmodule Pleroma.Web.ActivityPub.UserView do
"id" => "#{iri}?max_id=#{max_id}",
"type" => "OrderedCollectionPage",
"partOf" => iri,
- "totalItems" => info.note_count,
"orderedItems" => collection,
"next" => "#{iri}?max_id=#{min_id}"
}
@@ -186,7 +185,6 @@ defmodule Pleroma.Web.ActivityPub.UserView do
%{
"id" => iri,
"type" => "OrderedCollection",
- "totalItems" => info.note_count,
"first" => page
}
|> Map.merge(Utils.make_json_ld_header())