1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2024-12-27 03:55:05 +01:00

formatting

This commit is contained in:
lain 2018-08-12 19:42:21 +02:00
parent ffd9ad1f0c
commit 8c0c930041

View File

@ -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) ->