diff options
author | rinpatch <rinpatch@sdf.org> | 2019-08-10 16:27:46 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-08-10 16:27:46 +0300 |
commit | 0802a08871afee7f09362cbca8b802f0e27ff4b9 (patch) | |
tree | 75d2bc4a55e1469d60bb770288652c962eaa4449 /test | |
parent | 337edb3e500dc8d3d74926eb9da739bec8e8a7ac (diff) | |
download | pleroma-0802a08871afee7f09362cbca8b802f0e27ff4b9.tar.gz |
Mastodon API: Fix thread mute detection
It was calling CommonAPI.thread_muted? with post author's account
instead of viewer's one.
Diffstat (limited to 'test')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index e49c4cc22..b023d1e4f 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -2901,8 +2901,10 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do describe "conversation muting" do setup do + post_user = insert(:user) user = insert(:user) - {:ok, activity} = CommonAPI.post(user, %{"status" => "HIE"}) + + {:ok, activity} = CommonAPI.post(post_user, %{"status" => "HIE"}) [user: user, activity: activity] end |