Transmogrifier: On incoming follow accept, update follow counts.

This commit is contained in:
lain 2020-05-12 12:29:37 +02:00
commit ca31af473c
2 changed files with 11 additions and 1 deletions

View file

@ -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