summaryrefslogtreecommitdiff
path: root/test/web/activity_pub/activity_pub_test.exs
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2019-12-01 16:18:16 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2019-12-01 16:18:16 +0300
commit88f7cf51d43181b27db5ff1807d3e706fa336bac (patch)
tree3c3f8ba3b7685290e26c3582eeba7ba55ca1d10b /test/web/activity_pub/activity_pub_test.exs
parent708fd234bdff5423ca6d8003232eca0df231bbc2 (diff)
parent0d24ab04c5ea779432b4ea174a1d470dac87315d (diff)
downloadpleroma-88f7cf51d43181b27db5ff1807d3e706fa336bac.tar.gz
pleroma-88f7cf51d43181b27db5ff1807d3e706fa336bac.zip
Merge branch 'develop' into issue/1411
Diffstat (limited to 'test/web/activity_pub/activity_pub_test.exs')
-rw-r--r--test/web/activity_pub/activity_pub_test.exs15
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 4f2d2d093..5c977826f 100644
--- a/test/web/activity_pub/activity_pub_test.exs
+++ b/test/web/activity_pub/activity_pub_test.exs
@@ -1554,6 +1554,21 @@ 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
describe "fetch_favourites/3" do