use commonAPI in tests

This commit is contained in:
Sadposter 2019-08-18 22:54:40 +01:00
parent 94e336d9d5
commit 58c1391c4d
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ test "clears follow requests when requester is blocked" do
followed = insert(:user, %{info: %{locked: true}})
follower = insert(:user)
Pleroma.Web.TwitterAPI.TwitterAPI.follow(follower, %{"user_id" => followed.id})
CommonAPI.follow(follower, followed)
assert {:ok, [_activity]} = User.get_follow_requests(followed)
{:ok, _follower} = User.block(followed, follower)