diff options
author | rinpatch <rinpatch@sdf.org> | 2019-06-05 11:07:54 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-06-05 11:07:54 +0000 |
commit | 50afe5ab9e384676a7e64b476f3655ccf94acb5d (patch) | |
tree | c95c70401ec98e26d98339b22a06dd06313176d6 /test/web/twitter_api/twitter_api_test.exs | |
parent | eda4b00a6a76dc282fe83582e7e24209379d4025 (diff) | |
parent | 024dfdc39c80e3a0c9f625f31101fc6aa896e93d (diff) | |
download | pleroma-50afe5ab9e384676a7e64b476f3655ccf94acb5d.tar.gz pleroma-50afe5ab9e384676a7e64b476f3655ccf94acb5d.zip |
Merge branch 'fix-stuck-follows' into 'develop'
User: Don't error out when following a user that's already followed.
See merge request pleroma/pleroma!1249
Diffstat (limited to 'test/web/twitter_api/twitter_api_test.exs')
-rw-r--r-- | test/web/twitter_api/twitter_api_test.exs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/web/twitter_api/twitter_api_test.exs b/test/web/twitter_api/twitter_api_test.exs index d601c8f1f..475531a09 100644 --- a/test/web/twitter_api/twitter_api_test.exs +++ b/test/web/twitter_api/twitter_api_test.exs @@ -116,8 +116,7 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do {:ok, user, followed, _activity} = TwitterAPI.follow(user, %{"user_id" => followed.id}) assert User.ap_followers(followed) in user.following - {:error, msg} = TwitterAPI.follow(user, %{"user_id" => followed.id}) - assert msg == "Could not follow user: #{followed.nickname} is already on your list." + {:ok, _, _, _} = TwitterAPI.follow(user, %{"user_id" => followed.id}) end test "Follow another user using screen_name" do @@ -132,8 +131,7 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do followed = User.get_cached_by_ap_id(followed.ap_id) assert followed.info.follower_count == 1 - {:error, msg} = TwitterAPI.follow(user, %{"screen_name" => followed.nickname}) - assert msg == "Could not follow user: #{followed.nickname} is already on your list." + {:ok, _, _, _} = TwitterAPI.follow(user, %{"screen_name" => followed.nickname}) end test "Unfollow another user using user_id" do |