Apply suggestion to lib/pleroma/web/activity_pub/views/user_view.ex
authorrinpatch <rinpatch@sdf.org>
Wed, 25 Sep 2019 13:38:45 +0000 (13:38 +0000)
committerrinpatch <rinpatch@sdf.org>
Thu, 26 Sep 2019 00:46:33 +0000 (03:46 +0300)
lib/pleroma/web/activity_pub/views/user_view.ex

index 08e778839dfee4bec2a6e85d5b2a575d90338bfa..9eec04f69356c245a814069c3b525823923d0e95 100644 (file)
@@ -235,15 +235,14 @@ defmodule Pleroma.Web.ActivityPub.UserView do
         }
       end
 
-    page = %{
+    %{
       "id" => "#{iri}?max_id=#{max_id}&page=true",
       "type" => "OrderedCollectionPage",
       "partOf" => iri,
       "orderedItems" => collection,
       "next" => "#{iri}?max_id=#{min_id}&page=true"
     }
-
-    page |> Map.merge(Utils.make_json_ld_header())
+    |> Map.merge(Utils.make_json_ld_header())
   end
 
   def collection(collection, iri, page, show_items \\ true, total \\ nil) do