From: Egor Kislitsyn Date: Tue, 3 Dec 2019 15:31:12 +0000 (+0700) Subject: Fix Pleroma.FollowingRelationship.move_following/2 X-Git-Url: http://git.squeep.com/?a=commitdiff_plain;h=05fb8d0084553a3ed7d1f10212f49771ce05570f;p=akkoma Fix Pleroma.FollowingRelationship.move_following/2 --- diff --git a/lib/pleroma/following_relationship.ex b/lib/pleroma/following_relationship.ex index a03c9bd30..0b0219b82 100644 --- a/lib/pleroma/following_relationship.ex +++ b/lib/pleroma/following_relationship.ex @@ -121,8 +121,12 @@ defmodule Pleroma.FollowingRelationship do Pleroma.Web.CommonAPI.follow(following_relationship.follower, target) end) |> case do - [] -> :ok - _ -> move_following(origin, target) + [] -> + User.update_follower_count(origin) + :ok + + _ -> + move_following(origin, target) end end end