diff options
author | rinpatch <rinpatch@sdf.org> | 2020-04-11 19:46:04 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-05-01 14:31:26 +0300 |
commit | 138e6ece1b4185fbe8d8a8f7873ae0c3ee0837e6 (patch) | |
tree | 239b7e454bb684a7156ddbb918f4b0188276035c /test/web/mastodon_api/controllers | |
parent | fb9ec885cc96e51bd7703d98d8e41305ead56b9e (diff) | |
download | pleroma-138e6ece1b4185fbe8d8a8f7873ae0c3ee0837e6.tar.gz pleroma-138e6ece1b4185fbe8d8a8f7873ae0c3ee0837e6.zip |
Merge branch 'following-relationships-optimizations' into 'develop'
FollowingRelationship storage & performance optimizations
See merge request pleroma/pleroma!2332
Diffstat (limited to 'test/web/mastodon_api/controllers')
-rw-r--r-- | test/web/mastodon_api/controllers/follow_request_controller_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/mastodon_api/controllers/follow_request_controller_test.exs b/test/web/mastodon_api/controllers/follow_request_controller_test.exs index dd848821a..d8dbe4800 100644 --- a/test/web/mastodon_api/controllers/follow_request_controller_test.exs +++ b/test/web/mastodon_api/controllers/follow_request_controller_test.exs @@ -21,7 +21,7 @@ defmodule Pleroma.Web.MastodonAPI.FollowRequestControllerTest do other_user = insert(:user) {:ok, _activity} = ActivityPub.follow(other_user, user) - {:ok, other_user} = User.follow(other_user, user, "pending") + {:ok, other_user} = User.follow(other_user, user, :follow_pending) assert User.following?(other_user, user) == false @@ -35,7 +35,7 @@ defmodule Pleroma.Web.MastodonAPI.FollowRequestControllerTest do other_user = insert(:user) {:ok, _activity} = ActivityPub.follow(other_user, user) - {:ok, other_user} = User.follow(other_user, user, "pending") + {:ok, other_user} = User.follow(other_user, user, :follow_pending) user = User.get_cached_by_id(user.id) other_user = User.get_cached_by_id(other_user.id) |