diff options
author | lain <lain@soykaf.club> | 2020-03-19 18:00:55 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-03-19 18:00:55 +0100 |
commit | 3c2c32b460c2d942d085725d14e77a96c4a01e4c (patch) | |
tree | 1542ba8f33738650c561a1f944ae7ce9e16dd116 /test/web/mastodon_api/controllers/notification_controller_test.exs | |
parent | ac5c2b66b9f106bad117708cf74e3007c434d09e (diff) | |
parent | d4bafabfd14887e61eb5bc1d877035dcfebbd33f (diff) | |
download | pleroma-3c2c32b460c2d942d085725d14e77a96c4a01e4c.tar.gz pleroma-3c2c32b460c2d942d085725d14e77a96c4a01e4c.zip |
Merge branch 'remake-remodel' into develop
Diffstat (limited to 'test/web/mastodon_api/controllers/notification_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/controllers/notification_controller_test.exs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/web/mastodon_api/controllers/notification_controller_test.exs b/test/web/mastodon_api/controllers/notification_controller_test.exs index d452ddbdd..3bc9aff16 100644 --- a/test/web/mastodon_api/controllers/notification_controller_test.exs +++ b/test/web/mastodon_api/controllers/notification_controller_test.exs @@ -194,10 +194,10 @@ defmodule Pleroma.Web.MastodonAPI.NotificationControllerTest do {:ok, private_activity} = CommonAPI.post(other_user, %{"status" => ".", "visibility" => "private"}) - {:ok, _, _} = CommonAPI.favorite(public_activity.id, user) - {:ok, _, _} = CommonAPI.favorite(direct_activity.id, user) - {:ok, _, _} = CommonAPI.favorite(unlisted_activity.id, user) - {:ok, _, _} = CommonAPI.favorite(private_activity.id, user) + {:ok, _} = CommonAPI.favorite(user, public_activity.id) + {:ok, _} = CommonAPI.favorite(user, direct_activity.id) + {:ok, _} = CommonAPI.favorite(user, unlisted_activity.id) + {:ok, _} = CommonAPI.favorite(user, private_activity.id) activity_ids = conn @@ -274,7 +274,7 @@ defmodule Pleroma.Web.MastodonAPI.NotificationControllerTest do {:ok, mention_activity} = CommonAPI.post(other_user, %{"status" => "hey @#{user.nickname}"}) {:ok, create_activity} = CommonAPI.post(user, %{"status" => "hey"}) - {:ok, favorite_activity, _} = CommonAPI.favorite(create_activity.id, other_user) + {:ok, favorite_activity} = CommonAPI.favorite(other_user, create_activity.id) {:ok, reblog_activity, _} = CommonAPI.repeat(create_activity.id, other_user) {:ok, _, _, follow_activity} = CommonAPI.follow(other_user, user) |