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
563f04e8
Commit
563f04e8
authored
Feb 09, 2019
by
lain
Browse files
Do autofollow first.
parent
bbd0049f
Pipeline
#7318
passed with stages
in 3 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/user.ex
View file @
563f04e8
...
...
@@ -250,8 +250,8 @@ defp autofollow_users(user) do
@doc
"Inserts provided changeset, performs post-registration actions (confirmation email sending etc.)"
def
register
(%
Ecto
.
Changeset
{}
=
changeset
)
do
with
{
:ok
,
user
}
<-
Repo
.
insert
(
changeset
),
{
:ok
,
_
}
<-
try_send_confirmation_email
(
user
),
{
:ok
,
user
}
<-
autofollow_users
(
user
)
do
{
:ok
,
user
}
<-
autofollow_users
(
user
),
{
:ok
,
_
}
<-
try_send_confirmation_email
(
user
)
do
{
:ok
,
user
}
end
end
...
...
Write
Preview
Supports
Markdown
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