activitypub: user view: remove totalInbox from user inbox view
authorWilliam Pitcock <nenolod@dereferenced.org>
Thu, 14 Feb 2019 03:01:39 +0000 (03:01 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Thu, 14 Feb 2019 03:01:39 +0000 (03:01 +0000)
It is not really feasible to quickly calculate the totalItems value and
it shouldn't be trusted anyway.

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

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