Use Pleroma.Config instead of Application.get_env
This commit is contained in:
parent
13ff312c48
commit
87a01f9ee0
|
@ -924,8 +924,7 @@ def unmute(muter, %{ap_id: ap_id}) do
|
||||||
end
|
end
|
||||||
|
|
||||||
def subscribe(subscriber, %{ap_id: ap_id}) do
|
def subscribe(subscriber, %{ap_id: ap_id}) do
|
||||||
user_config = Application.get_env(:pleroma, :user)
|
deny_follow_blocked = Pleroma.Config.get([:user, :deny_follow_blocked])
|
||||||
deny_follow_blocked = Keyword.get(user_config, :deny_follow_blocked)
|
|
||||||
|
|
||||||
with %User{} = subscribed <- get_or_fetch_by_ap_id(ap_id) do
|
with %User{} = subscribed <- get_or_fetch_by_ap_id(ap_id) do
|
||||||
blocked = blocks?(subscribed, subscriber) and deny_follow_blocked
|
blocked = blocks?(subscribed, subscriber) and deny_follow_blocked
|
||||||
|
|
Loading…
Reference in New Issue