AccountController: Fix muting / unmuting reblogs.

This commit is contained in:
lain 2020-07-08 11:52:29 +02:00
commit c0385cf47a
3 changed files with 52 additions and 10 deletions

View 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