Merge branch 'feature/move-activity' into 'develop'
[akkoma] / test / web / activity_pub / activity_pub_test.exs
index 71aab92c3b0f2afde4af4f2211b50841ae8b16c1..2677b9e36bbd48b1a700a2dc9f5811f997dc237a 100644 (file)
@@ -1557,6 +1557,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 "Move activity" do