projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffd9ad1
)
formatting
author
lain
<lain@soykaf.club>
Sun, 12 Aug 2018 17:42:21 +0000
(19:42 +0200)
committer
lain
<lain@soykaf.club>
Sun, 12 Aug 2018 17:42:21 +0000
(19:42 +0200)
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 3bc2f350fe18747cfdb2b1de6cc4e5224dc9f277..dbad08e66d420eb9fb248c33184e533cadf573b9 100644
(file)
--- a/
lib/pleroma/web/twitter_api/twitter_api.ex
+++ b/
lib/pleroma/web/twitter_api/twitter_api.ex
@@
-134,9
+134,10
@@
defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
}
# no need to query DB if registration is open
- token = unless @registrations_open || is_nil(tokenString) do
- Repo.get_by(UserInviteToken, %{token: tokenString})
- end
+ token =
+ unless @registrations_open || is_nil(tokenString) do
+ Repo.get_by(UserInviteToken, %{token: tokenString})
+ end
cond do
@registrations_open || (!is_nil(token) && !token.used) ->