Verified Commit 87a01f9e authored by Sadposter's avatar Sadposter

Use Pleroma.Config instead of Application.get_env

parent 13ff312c
...@@ -924,8 +924,7 @@ def unmute(muter, %{ap_id: ap_id}) do ...@@ -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
......
Markdown is supported
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