Merge branch 'feature/tag_feed' into 'develop'
[akkoma] / lib / pleroma / web / feed / user_controller.ex
index e5d8427ce41abdd11b7a0a43ddd9473e9132bfbd..f5096834b1c8a02e5e4174cd6f7a6c06da529f02 100644 (file)
@@ -11,6 +11,8 @@ defmodule Pleroma.Web.Feed.UserController do
   alias Pleroma.Web.ActivityPub.ActivityPubController
   alias Pleroma.Web.Feed.FeedView
 
+  import Pleroma.Web.ControllerHelper, only: [put_in_if_exist: 3]
+
   plug(Pleroma.Plugs.SetFormatPlug when action in [:feed_redirect])
 
   action_fallback(:errors)
@@ -37,10 +39,9 @@ defmodule Pleroma.Web.Feed.UserController do
       activities =
         %{
           "type" => ["Create"],
-          "whole_db" => true,
           "actor_id" => user.ap_id
         }
-        |> Map.merge(Map.take(params, ["max_id"]))
+        |> put_in_if_exist("max_id", params["max_id"])
         |> ActivityPub.fetch_public_activities()
 
       conn