aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-05-12 12:29:37 +0200
committerlain <lain@soykaf.club>2020-05-12 12:29:37 +0200
commitca31af473c556f8320914f0621d08d59c96d3bef (patch)
treed53ed0fa9dcfccbe9c8214739df96f380e9eff33 /test
parentf8190aea5e68a6e17ccc88b13486bd69c3b08450 (diff)
downloadpleroma-ca31af473c556f8320914f0621d08d59c96d3bef.tar.gz
Transmogrifier: On incoming follow accept, update follow counts.
Diffstat (limited to 'test')
-rw-r--r--test/web/activity_pub/transmogrifier_test.exs6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/web/activity_pub/transmogrifier_test.exs b/test/web/activity_pub/transmogrifier_test.exs
index 2914c90ea..7d39d9067 100644
--- a/test/web/activity_pub/transmogrifier_test.exs
+++ b/test/web/activity_pub/transmogrifier_test.exs
@@ -815,6 +815,12 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
follower = User.get_cached_by_id(follower.id)
assert User.following?(follower, followed) == true
+
+ follower = User.get_by_id(follower.id)
+ assert follower.following_count == 1
+
+ followed = User.get_by_id(followed.id)
+ assert followed.follower_count == 1
end
test "it fails for incoming accepts which cannot be correlated" do