diff options
author | lain <lain@soykaf.club> | 2020-05-12 12:29:37 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-05-12 12:29:37 +0200 |
commit | ca31af473c556f8320914f0621d08d59c96d3bef (patch) | |
tree | d53ed0fa9dcfccbe9c8214739df96f380e9eff33 /test | |
parent | f8190aea5e68a6e17ccc88b13486bd69c3b08450 (diff) | |
download | pleroma-ca31af473c556f8320914f0621d08d59c96d3bef.tar.gz pleroma-ca31af473c556f8320914f0621d08d59c96d3bef.zip |
Transmogrifier: On incoming follow accept, update follow counts.
Diffstat (limited to 'test')
-rw-r--r-- | test/web/activity_pub/transmogrifier_test.exs | 6 |
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 |