mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-04 18:38:15 +00:00
Fix for elixir 1.7.
This commit is contained in:
parent
701f5df45c
commit
ffd9ad1f0c
|
@ -134,8 +134,8 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
|
||||||
}
|
}
|
||||||
|
|
||||||
# no need to query DB if registration is open
|
# no need to query DB if registration is open
|
||||||
unless @registrations_open || is_nil(tokenString) do
|
token = unless @registrations_open || is_nil(tokenString) do
|
||||||
token = Repo.get_by(UserInviteToken, %{token: tokenString})
|
Repo.get_by(UserInviteToken, %{token: tokenString})
|
||||||
end
|
end
|
||||||
|
|
||||||
cond do
|
cond do
|
||||||
|
|
Loading…
Reference in a new issue