activitypub: user view: remove totalItems from user outbox
authorWilliam Pitcock <nenolod@dereferenced.org>
Thu, 14 Feb 2019 03:02:45 +0000 (03:02 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Thu, 14 Feb 2019 03:02:45 +0000 (03:02 +0000)
(this is based on a counter in User.Info, but the counter is not reliable.)

lib/pleroma/web/activity_pub/views/user_view.ex

index 1e16f7ebb98a10ac28aa43239a7bc7c9eb1a7e6d..506fa5ea35346e89d81450017aa6fc28348a8208 100644 (file)
@@ -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())