User: Remove ap_enabled?/1

This commit is contained in:
Haelwenn (lanodan) Monnier 2023-05-05 11:08:26 +02:00
parent 9dfa1c4be0
commit 238edc30de
1 changed files with 0 additions and 4 deletions

View File

@ -2147,10 +2147,6 @@ def get_public_key_for_ap_id(ap_id) do
end
end
def ap_enabled?(%User{local: true}), do: true
def ap_enabled?(%User{ap_enabled: ap_enabled}), do: ap_enabled
def ap_enabled?(_), do: false
@doc "Gets or fetch a user by uri or nickname."
@spec get_or_fetch(String.t()) :: {:ok, User.t()} | {:error, String.t()}
def get_or_fetch("http://" <> _host = uri), do: get_or_fetch_by_ap_id(uri)