diff options
author | lain <lain@soykaf.club> | 2020-05-12 12:29:37 +0200 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-05-12 23:05:57 +0300 |
commit | ec5e05780292710a3454b21d32a1af053cb603e0 (patch) | |
tree | 2d9f3e411380b81a1ea28fecfb25c202dda3da08 /test | |
parent | b5b675fa14094ae13b78b3de137a9c6de83b3696 (diff) | |
download | pleroma-ec5e05780292710a3454b21d32a1af053cb603e0.tar.gz pleroma-ec5e05780292710a3454b21d32a1af053cb603e0.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 2a3fd92b4..601e5f966 100644 --- a/test/web/activity_pub/transmogrifier_test.exs +++ b/test/web/activity_pub/transmogrifier_test.exs @@ -1120,6 +1120,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 |