fix mind-crushingly dumb syntax error
authorsquidboi <squidboi@waifu.club>
Sat, 23 Jun 2018 21:32:00 +0000 (14:32 -0700)
committersquidboi <squidboi@waifu.club>
Sat, 23 Jun 2018 21:32:00 +0000 (14:32 -0700)
lib/pleroma/user.ex
lib/pleroma/web/activity_pub/activity_pub.ex

index a73b0bdf46eaf90382bf90dbb26ef76383563cf8..c840c8529c4bca37283a7b86b28cd4c79c812023 100644 (file)
@@ -169,8 +169,8 @@ defmodule Pleroma.User do
   end
 
   def maybe_direct_follow(%User{} = follower, %User{info: info} = followed) do
-    user_config Application.get_env(:pleroma, :user)
-    deny_follow_blocked Keyword.get(user_config, :deny_follow_blocked)
+    user_config Application.get_env(:pleroma, :user)
+    deny_follow_blocked Keyword.get(user_config, :deny_follow_blocked)
 
     user_info = user_info(followed)
 
@@ -210,8 +210,8 @@ defmodule Pleroma.User do
   end
 
   def follow(%User{} = follower, %User{info: info} = followed) do
-    user_config Application.get_env(:pleroma, :user)
-    deny_follow_blocked Keyword.get(user_config, :deny_follow_blocked)
+    user_config Application.get_env(:pleroma, :user)
+    deny_follow_blocked Keyword.get(user_config, :deny_follow_blocked)
 
     ap_followers = followed.follower_address
 
index c9b8961dd9545b37fe9a7060d9d7d09079c9efd0..513b53b30b47a103b075577f7a1ec29014a71d4c 100644 (file)
@@ -243,9 +243,9 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
   end
 
   def block(blocker, blocked, activity_id \\ nil, local \\ true) do
-    ap_config Application.get_env(:pleroma, :activitypub)
-    unfollow_blocked Keyword.get(ap_config, :unfollow_blocked)
-    outgoing_blocks Keyword.get(ap_config, :outgoing_blocks)
+    ap_config Application.get_env(:pleroma, :activitypub)
+    unfollow_blocked Keyword.get(ap_config, :unfollow_blocked)
+    outgoing_blocks Keyword.get(ap_config, :outgoing_blocks)
 
     with true <- unfollow_blocked do
       follow_activity = fetch_latest_follow(blocker, blocked)