Fix Pleroma.FollowingRelationship.move_following/2

This commit is contained in:
Egor Kislitsyn 2019-12-03 22:31:12 +07:00
parent 624e720aa4
commit 05fb8d0084

View file

@ -121,8 +121,12 @@ def move_following(origin, target) do
Pleroma.Web.CommonAPI.follow(following_relationship.follower, target) Pleroma.Web.CommonAPI.follow(following_relationship.follower, target)
end) end)
|> case do |> case do
[] -> :ok [] ->
_ -> move_following(origin, target) User.update_follower_count(origin)
:ok
_ ->
move_following(origin, target)
end end
end end
end end