X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fconfig.ex;h=a8329cc1efbda910a5a0de6dda0068996d5b7d27;hb=56470647ded20812c47cd9174540911fbe3631f6;hp=98099ca58a906955dd06191e564473a433948fad;hpb=6f60ac9f41d9511afa71986f000a2fc6c637b0c5;p=akkoma diff --git a/lib/pleroma/config.ex b/lib/pleroma/config.ex index 98099ca58..a8329cc1e 100644 --- a/lib/pleroma/config.ex +++ b/lib/pleroma/config.ex @@ -32,6 +32,8 @@ defmodule Pleroma.Config do end end + def fetch(key) when is_atom(key), do: fetch([key]) + def fetch([root_key | keys]) do Enum.reduce_while(keys, Application.fetch_env(:pleroma, root_key), fn key, {:ok, config} when is_map(config) or is_list(config) ->