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)
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
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)