From: squidboi Date: Sat, 23 Jun 2018 21:32:00 +0000 (-0700) Subject: fix mind-crushingly dumb syntax error X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=c4038ede0729e1998511fa0a21860d7061e31454;p=akkoma fix mind-crushingly dumb syntax error --- diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index a73b0bdf4..c840c8529 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -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 diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index c9b8961dd..513b53b30 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -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)