Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
2c29329d
Commit
2c29329d
authored
Oct 11, 2018
by
kaniini
Browse files
user: local users are always AP-enabled (closes
#316
)
parent
3a77336d
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/user.ex
View file @
2c29329d
...
...
@@ -728,6 +728,7 @@ def insert_or_update_user(data) 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment