summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/controllers
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-04-11 19:46:04 +0000
committerrinpatch <rinpatch@sdf.org>2020-04-11 19:46:04 +0000
commit5e365448f3fed98da0395ad69c9325795a85a12d (patch)
treeca36ada03040bc1afb5a83db2dad481ff434f257 /test/web/mastodon_api/controllers
parentc682563b92ce0b1a44523b67f5739707dd203de0 (diff)
parentea9c57b26ed463622e4489736fcddb8fca1b3341 (diff)
downloadpleroma-5e365448f3fed98da0395ad69c9325795a85a12d.tar.gz
pleroma-5e365448f3fed98da0395ad69c9325795a85a12d.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.exs4
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)