diff options
author | kPherox <admin@mail.kr-kp.com> | 2019-11-30 15:24:08 +0900 |
---|---|---|
committer | kPherox <admin@mail.kr-kp.com> | 2019-11-30 15:43:12 +0900 |
commit | 1915b23e72c5cbed5c794f66eb0a727e719d3c57 (patch) | |
tree | 336cce7d402e82805af5f9160db87126d4cbfb8f /test/web | |
parent | 0326683932800c20dcec2b7d3500bff149cf091b (diff) | |
download | pleroma-1915b23e72c5cbed5c794f66eb0a727e719d3c57.tar.gz pleroma-1915b23e72c5cbed5c794f66eb0a727e719d3c57.zip |
test missing first field
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 |