Merge branch 'bugfix/follower_count' into 'develop'

update the follower count when a follower is blocked

See merge request pleroma/pleroma!1033
This commit is contained in:
lambda 2019-04-09 07:30:38 +00:00
commit 0a02ed7a2f
2 changed files with 19 additions and 0 deletions

View file

@ -945,6 +945,8 @@ defmodule Pleroma.User do
unfollow(blocked, blocker)
end
{:ok, blocker} = update_follower_count(blocker)
info_cng =
blocker.info
|> User.Info.add_to_block(ap_id)