Merge branch 'develop' into activation-meta
[akkoma] / lib / pleroma / user.ex
index c3e2a89ad37d325ef2561b654cf658a102ddb64f..9d5c61e7981debc500f376941a47c4d8a26c9257 100644 (file)
@@ -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)