update the follower count when a follower is blocked

This commit is contained in:
Sachin Joshi 2019-04-08 15:16:18 +05:45
commit 07afb9b537
2 changed files with 19 additions and 0 deletions

View file

@ -937,6 +937,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)