diff options
author | Sachin Joshi <satchin.joshi@gmail.com> | 2019-04-08 15:16:18 +0545 |
---|---|---|
committer | Sachin Joshi <satchin.joshi@gmail.com> | 2019-04-09 09:15:45 +0545 |
commit | 07afb9b537fd8966ceefda74f978cf7cfd2c09ea (patch) | |
tree | ff81f68b5312d4adaf0c98ce7ec4c3014f3ae1e1 /lib/pleroma/user.ex | |
parent | 3c5daa0235aaf47eeeda557fd677e3604cb7d701 (diff) | |
download | pleroma-07afb9b537fd8966ceefda74f978cf7cfd2c09ea.tar.gz |
update the follower count when a follower is blocked
Diffstat (limited to 'lib/pleroma/user.ex')
-rw-r--r-- | lib/pleroma/user.ex | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 5012aef77..a6e2c8b97 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -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) |