mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-11-04 16:09:36 +00:00
user: local users are always AP-enabled (closes #316)
This commit is contained in:
parent
3a77336d89
commit
2c29329d39
1 changed files with 1 additions and 0 deletions
|
@ -728,6 +728,7 @@ defmodule Pleroma.User do
|
||||||
Repo.insert(cs, on_conflict: :replace_all, conflict_target: :nickname)
|
Repo.insert(cs, on_conflict: :replace_all, conflict_target: :nickname)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def ap_enabled?(%User{local: true}), do: true
|
||||||
def ap_enabled?(%User{info: info}), do: info["ap_enabled"]
|
def ap_enabled?(%User{info: info}), do: info["ap_enabled"]
|
||||||
def ap_enabled?(_), do: false
|
def ap_enabled?(_), do: false
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue