projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcc54f8
)
code style
author
Alex S
<alex.strizhakov@gmail.com>
Sat, 6 Apr 2019 13:47:05 +0000
(20:47 +0700)
committer
Alex S
<alex.strizhakov@gmail.com>
Sat, 6 Apr 2019 13:47:05 +0000
(20:47 +0700)
lib/pleroma/web/twitter_api/twitter_api.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/twitter_api/twitter_api.ex
b/lib/pleroma/web/twitter_api/twitter_api.ex
index 402fd195f8af204ca5591eced1675a4395297f90..9e9a46cf1ce93cf6f83f92ef4c112bf600817592 100644
(file)
--- a/
lib/pleroma/web/twitter_api/twitter_api.ex
+++ b/
lib/pleroma/web/twitter_api/twitter_api.ex
@@
-167,10
+167,6
@@
defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
end
end
- defp registration_process(_registration_open = true, params, _token) do
- create_user(params)
- end
-
defp registration_process(registration_open, params, token)
when registration_open == false or is_nil(registration_open) do
invite =
@@
-193,6
+189,10
@@
defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
end
end
+ defp registration_process(true, params, _token) do
+ create_user(params)
+ end
+
defp create_user(params) do
changeset = User.register_changeset(%User{}, params)