projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
701f5df
)
Fix for elixir 1.7.
author
lain
<lain@soykaf.club>
Sun, 12 Aug 2018 16:41:33 +0000
(18:41 +0200)
committer
lain
<lain@soykaf.club>
Sun, 12 Aug 2018 16:41:33 +0000
(18:41 +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 9d8815ce7d185f87d4736b1b39028a99639b9ecf..3bc2f350fe18747cfdb2b1de6cc4e5224dc9f277 100644
(file)
--- a/
lib/pleroma/web/twitter_api/twitter_api.ex
+++ b/
lib/pleroma/web/twitter_api/twitter_api.ex
@@
-134,8
+134,8
@@
defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
}
# no need to query DB if registration is open
- unless @registrations_open || is_nil(tokenString) do
-
token =
Repo.get_by(UserInviteToken, %{token: tokenString})
+
token =
unless @registrations_open || is_nil(tokenString) do
+ Repo.get_by(UserInviteToken, %{token: tokenString})
end
cond do