diff options
Diffstat (limited to 'lib/pleroma')
-rw-r--r-- | lib/pleroma/user.ex | 3 | ||||
-rw-r--r-- | lib/pleroma/web/activity_pub/activity_pub.ex | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 5e3096172..dd645b2e5 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -181,7 +181,8 @@ defmodule Pleroma.User do false # if the users are blocking each other, we shouldn't even be here, but check for it anyway - @deny_follow_blocked and (User.blocks?(follower, followed) or User.blocks?(followed, follower)) -> + @deny_follow_blocked and + (User.blocks?(follower, followed) or User.blocks?(followed, follower)) -> false # if OStatus, then there is no three-way handshake to follow diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index f213b68ca..a12bd5b58 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -245,9 +245,9 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do @outgoing_blocks Keyword.get(@ap_config, :outgoing_blocks) def block(blocker, blocked, activity_id \\ nil, local \\ true) do - with true <- @unfollow_blocked do follow_activity = fetch_latest_follow(blocker, blocked) + if follow_activity do unfollow(blocker, blocked, nil, local) end |