- @instance Application.get_env(:pleroma, :instance)
- @federating Keyword.get(@instance, :federating)
- @allow_relay Keyword.get(@instance, :allow_relay)
- @public Keyword.get(@instance, :public)
- @registrations_open Keyword.get(@instance, :registrations_open)
-
- def user_fetcher(username) do
- {:ok, Repo.get_by(User, %{nickname: username})}
- end
-