diff options
author | squidboi <squidboi@waifu.club> | 2018-06-09 04:28:11 +0000 |
---|---|---|
committer | squidboi <squidboi@waifu.club> | 2018-06-09 04:28:11 +0000 |
commit | 4f9ecfc77a54eef23741c89206b4cbce924f7d76 (patch) | |
tree | 3aaadecb64735a47e8956737ba2895112a33106f /lib | |
parent | 8903f1ad4d6bfab519338b53885ccfbbe1797ed7 (diff) | |
download | pleroma-4f9ecfc77a54eef23741c89206b4cbce924f7d76.tar.gz pleroma-4f9ecfc77a54eef23741c89206b4cbce924f7d76.zip |
formatting
Diffstat (limited to 'lib')
-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 |