formatting
authorsquidboi <squidboi@waifu.club>
Sat, 9 Jun 2018 04:28:11 +0000 (04:28 +0000)
committersquidboi <squidboi@waifu.club>
Sat, 9 Jun 2018 04:28:11 +0000 (04:28 +0000)
config/config.exs
lib/pleroma/user.ex
lib/pleroma/web/activity_pub/activity_pub.ex

index 58b17e2068558a8df911935aed794e36534afea1..b8dd867c486282230b905b94eb0c9499e0b16de3 100644 (file)
@@ -62,8 +62,7 @@ config :pleroma, :activitypub,
   unfollow_blocked: true,
   outgoing_blocks: true
 
-config :pleroma, :user,
-  deny_follow_blocked: true
+config :pleroma, :user, deny_follow_blocked: true
 
 config :pleroma, :mrf_simple,
   media_removal: [],
index 5e309617203366de9332f5ece38f861b47259578..dd645b2e5a54ca5dc8123bf3a9625d362da79e36 100644 (file)
@@ -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
index f213b68ca115f0d2913f15bdbf21dda79ceae112..a12bd5b58db3978be203a6bffc3424d4373abcb3 100644 (file)
@@ -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