summaryrefslogtreecommitdiff
path: root/test/web/activity_pub/transmogrifier_test.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-08-02 11:23:07 +0000
committerlain <lain@soykaf.club>2019-08-02 11:23:07 +0000
commit5ff8f07ca906d77a6ec1d5ba912a787f855364f9 (patch)
treeff047fd71408e947b91ce9a44fe3fb026e7c684f /test/web/activity_pub/transmogrifier_test.exs
parent1fe092e03cab11a08e5a15d6bbaf0fd603ef4a00 (diff)
parent301ea0dc0466371032f44f3e936d1b951ed9784c (diff)
downloadpleroma-5ff8f07ca906d77a6ec1d5ba912a787f855364f9.tar.gz
pleroma-5ff8f07ca906d77a6ec1d5ba912a787f855364f9.zip
Merge branch 'feature/hide-follows-remote' into 'develop'
Refactor Follows/Followers counter syncronization and set hide_followers/hide_follows for remote users See merge request pleroma/pleroma!1411
Diffstat (limited to 'test/web/activity_pub/transmogrifier_test.exs')
-rw-r--r--test/web/activity_pub/transmogrifier_test.exs28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/web/activity_pub/transmogrifier_test.exs b/test/web/activity_pub/transmogrifier_test.exs
index a1f5f6e36..e7498e005 100644
--- a/test/web/activity_pub/transmogrifier_test.exs
+++ b/test/web/activity_pub/transmogrifier_test.exs
@@ -1373,32 +1373,4 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
refute recipient.follower_address in fixed_object["to"]
end
end
-
- test "update_following_followers_counters/1" do
- user1 =
- insert(:user,
- local: false,
- follower_address: "http://localhost:4001/users/masto_closed/followers",
- following_address: "http://localhost:4001/users/masto_closed/following"
- )
-
- user2 =
- insert(:user,
- local: false,
- follower_address: "http://localhost:4001/users/fuser2/followers",
- following_address: "http://localhost:4001/users/fuser2/following"
- )
-
- Transmogrifier.update_following_followers_counters(user1)
- Transmogrifier.update_following_followers_counters(user2)
-
- %{follower_count: followers, following_count: following} = User.get_cached_user_info(user1)
- assert followers == 437
- assert following == 152
-
- %{follower_count: followers, following_count: following} = User.get_cached_user_info(user2)
-
- assert followers == 527
- assert following == 267
- end
end