Fix order of args for add_mute/2
This commit is contained in:
parent
d27ad36ce4
commit
4601473aaf
8 changed files with 18 additions and 18 deletions
|
|
@ -1771,7 +1771,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do
|
|||
end
|
||||
|
||||
test "cannot mute already muted conversation", %{conn: conn, user: user, activity: activity} do
|
||||
{:ok, _} = CommonAPI.add_mute(user, activity)
|
||||
{:ok, _} = CommonAPI.add_mute(activity, user)
|
||||
|
||||
conn =
|
||||
conn
|
||||
|
|
@ -1784,7 +1784,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do
|
|||
end
|
||||
|
||||
test "unmute conversation", %{conn: conn, user: user, activity: activity} do
|
||||
{:ok, _} = CommonAPI.add_mute(user, activity)
|
||||
{:ok, _} = CommonAPI.add_mute(activity, user)
|
||||
|
||||
id_str = to_string(activity.id)
|
||||
|
||||
|
|
|
|||
|
|
@ -388,7 +388,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
|
|||
|
||||
assert status.pleroma.thread_muted == false
|
||||
|
||||
{:ok, activity} = CommonAPI.add_mute(user, activity)
|
||||
{:ok, activity} = CommonAPI.add_mute(activity, user)
|
||||
|
||||
status = StatusView.render("show.json", %{activity: activity, for: user})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue