aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/mastodon_api/controllers
diff options
context:
space:
mode:
authorRoman Chvanikov <chvanikoff@pm.me>2020-09-08 13:26:44 +0300
committerRoman Chvanikov <chvanikoff@pm.me>2020-09-08 13:26:44 +0300
commitc56e3d4f3bfb090d19bdbe93dac6cede7616cc4d (patch)
treea7bd7e51ff5a7802199f5be95879ce824f9a2078 /lib/pleroma/web/mastodon_api/controllers
parentd5c286b80225b51dabf4eb63ad8ab818ea534851 (diff)
downloadpleroma-c56e3d4f3bfb090d19bdbe93dac6cede7616cc4d.tar.gz
Add expires_in param for account mutes
Diffstat (limited to 'lib/pleroma/web/mastodon_api/controllers')
-rw-r--r--lib/pleroma/web/mastodon_api/controllers/account_controller.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/controllers/account_controller.ex b/lib/pleroma/web/mastodon_api/controllers/account_controller.ex
index 95d8452df..ca1a79f5e 100644
--- a/lib/pleroma/web/mastodon_api/controllers/account_controller.ex
+++ b/lib/pleroma/web/mastodon_api/controllers/account_controller.ex
@@ -394,7 +394,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountController do
@doc "POST /api/v1/accounts/:id/mute"
def mute(%{assigns: %{user: muter, account: muted}, body_params: params} = conn, _params) do
- with {:ok, _user_relationships} <- User.mute(muter, muted, params.notifications) do
+ with {:ok, _user_relationships} <- User.mute(muter, muted, params) do
render(conn, "relationship.json", user: muter, target: muted)
else
{:error, message} -> json_response(conn, :forbidden, %{error: message})