projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a77336
)
user: local users are always AP-enabled (closes #316)
author
William Pitcock
<nenolod@dereferenced.org>
Thu, 11 Oct 2018 10:35:11 +0000
(10:35 +0000)
committer
William Pitcock
<nenolod@dereferenced.org>
Thu, 11 Oct 2018 10:35:11 +0000
(10:35 +0000)
lib/pleroma/user.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/user.ex
b/lib/pleroma/user.ex
index 02f13eb2c7e52425975348217a5ae8213291a0a9..70726d399de673d9009a9ffd948d58e1c84d3731 100644
(file)
--- a/
lib/pleroma/user.ex
+++ b/
lib/pleroma/user.ex
@@
-728,6
+728,7
@@
defmodule Pleroma.User do
Repo.insert(cs, on_conflict: :replace_all, conflict_target: :nickname)
end
+ def ap_enabled?(%User{local: true}), do: true
def ap_enabled?(%User{info: info}), do: info["ap_enabled"]
def ap_enabled?(_), do: false