From: lain Date: Sun, 12 Aug 2018 16:41:33 +0000 (+0200) Subject: Fix for elixir 1.7. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=ffd9ad1f0ca745ac592f7ed763aa2250ff84ff08;p=akkoma Fix for elixir 1.7. --- diff --git a/lib/pleroma/web/twitter_api/twitter_api.ex b/lib/pleroma/web/twitter_api/twitter_api.ex index 9d8815ce7..3bc2f350f 100644 --- 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