diff options
| author | rinpatch <rinpatch@sdf.org> | 2019-11-30 10:41:18 +0000 |
|---|---|---|
| committer | rinpatch <rinpatch@sdf.org> | 2019-11-30 10:41:18 +0000 |
| commit | cf0c861d0012f27ae555247834187d509d7a7114 (patch) | |
| tree | 369c00656ea4f6d40864f3fe5483fbe6c749e5ab /test/web | |
| parent | b21738d4c08b2f0d66944e3f74a15f3a3985b37a (diff) | |
| parent | 1915b23e72c5cbed5c794f66eb0a727e719d3c57 (diff) | |
| download | pleroma-cf0c861d0012f27ae555247834187d509d7a7114.tar.gz pleroma-cf0c861d0012f27ae555247834187d509d7a7114.zip | |
Merge branch 'hide-relation-for-friendica' into 'develop'
Hide relation for friendica users
See merge request pleroma/pleroma!2026
Diffstat (limited to 'test/web')
| -rw-r--r-- | test/web/activity_pub/activity_pub_test.exs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/web/activity_pub/activity_pub_test.exs b/test/web/activity_pub/activity_pub_test.exs index d437ad456..30f5dde0c 100644 --- a/test/web/activity_pub/activity_pub_test.exs +++ b/test/web/activity_pub/activity_pub_test.exs @@ -1554,5 +1554,20 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do assert follow_info.hide_followers == false assert follow_info.hide_follows == true end + + test "detects hidden follows/followers for friendica" do + user = + insert(:user, + local: false, + follower_address: "http://localhost:8080/followers/fuser3", + following_address: "http://localhost:8080/following/fuser3" + ) + + {:ok, follow_info} = ActivityPub.fetch_follow_information_for_user(user) + assert follow_info.hide_followers == true + assert follow_info.follower_count == 296 + assert follow_info.following_count == 32 + assert follow_info.hide_follows == true + end end end |
