|
@@ -168,10 +168,10 @@ defmodule Pleroma.User do |
|
|
end |
|
|
end |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
@user_config Application.get_env(:pleroma, :user) |
|
|
|
|
|
@deny_follow_blocked Keyword.get(@user_config, :deny_follow_blocked) |
|
|
|
|
|
|
|
|
|
|
|
def maybe_direct_follow(%User{} = follower, %User{info: info} = followed) do |
|
|
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_info = user_info(followed) |
|
|
user_info = user_info(followed) |
|
|
|
|
|
|
|
|
should_direct_follow = |
|
|
should_direct_follow = |
|
@@ -209,10 +209,10 @@ defmodule Pleroma.User do |
|
|
end |
|
|
end |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
@user_config Application.get_env(:pleroma, :user) |
|
|
|
|
|
@deny_follow_blocked Keyword.get(@user_config, :deny_follow_blocked) |
|
|
|
|
|
|
|
|
|
|
|
def follow(%User{} = follower, %User{info: info} = followed) do |
|
|
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) |
|
|
|
|
|
|
|
|
ap_followers = followed.follower_address |
|
|
ap_followers = followed.follower_address |
|
|
|
|
|
|
|
|
cond do |
|
|
cond do |
|
|