Merge branch 'develop' into issue/1936
[akkoma] / lib / pleroma / config.ex
index 98099ca58a906955dd06191e564473a433948fad..a8329cc1efbda910a5a0de6dda0068996d5b7d27 100644 (file)
@@ -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) ->