User: Don't unfollow on block when the relevant setting is set.
This commit is contained in:
parent
c3383d4fab
commit
15a8b70318
4 changed files with 18 additions and 20 deletions
|
|
@ -1309,7 +1309,8 @@ defmodule Pleroma.User do
|
|||
|
||||
unsubscribe(blocked, blocker)
|
||||
|
||||
if following?(blocked, blocker), do: unfollow(blocked, blocker)
|
||||
unfollowing_blocked = Config.get([:activitypub, :unfollow_blocked], true)
|
||||
if unfollowing_blocked && following?(blocked, blocker), do: unfollow(blocked, blocker)
|
||||
|
||||
{:ok, blocker} = update_follower_count(blocker)
|
||||
{:ok, blocker, _} = Participation.mark_all_as_read(blocker, blocked)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue