- Why can't you just be normal?

- *screams in single 15 line pipe*
This commit is contained in:
rinpatch 2019-04-05 11:08:03 +03:00
parent 56013408e0
commit b14446d878
1 changed files with 3 additions and 2 deletions

View File

@ -101,8 +101,9 @@ defmodule Pleroma.Web.ActivityPub.MRF.KeywordPolicy do
end
def list_keyword_policy do
Pleroma.Config.get(:mrf_keyword, [])
|> Enum.reduce(%{}, fn {key, value}, acc ->
config = Pleroma.Config.get(:mrf_keyword, %{})
Enum.reduce(config, %{}, fn {key, value}, acc ->
base = if is_map(value), do: %{}, else: []
value =