Verified Commit 87a01f9e authored by Sadposter's avatar Sadposter
Browse files

Use Pleroma.Config instead of Application.get_env

parent 13ff312c
......@@ -924,8 +924,7 @@ def unmute(muter, %{ap_id: ap_id}) do
def subscribe(subscriber, %{ap_id: ap_id}) do
user_config = Application.get_env(:pleroma, :user)
deny_follow_blocked = Keyword.get(user_config, :deny_follow_blocked)
deny_follow_blocked = Pleroma.Config.get([:user, :deny_follow_blocked])
with %User{} = subscribed <- get_or_fetch_by_ap_id(ap_id) do
blocked = blocks?(subscribed, subscriber) and deny_follow_blocked
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment