AccountController: Fix muting / unmuting reblogs.
[akkoma] / lib / pleroma / web / mastodon_api / controllers / account_controller.ex
index d4532258c4ea37e68cab2d5c2fd0e55be7f29508..fd89faf02152d912e1928709388a87a75e6ad249 100644 (file)
@@ -353,7 +353,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountController do
     {:error, "Can not follow yourself"}
   end
 
-  def follow(%{assigns: %{user: follower, account: followed}} = conn, params) do
+  def follow(%{body_params: params, assigns: %{user: follower, account: followed}} = conn, _) do
     with {:ok, follower} <- MastodonAPI.follow(follower, followed, params) do
       render(conn, "relationship.json", user: follower, target: followed)
     else