From: Mark Felder Date: Mon, 19 Mar 2018 18:00:02 +0000 (+0000) Subject: cap again X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=2702df489fb7bbc2dbb0012f5b7eb8c3278faebe;p=akkoma cap again --- diff --git a/lib/pleroma/web/oauth/authorization.ex b/lib/pleroma/web/oauth/authorization.ex index ab2dbf60e..5a68bd593 100644 --- a/lib/pleroma/web/oauth/authorization.ex +++ b/lib/pleroma/web/oauth/authorization.ex @@ -40,7 +40,7 @@ defmodule Pleroma.Web.OAuth.Authorization do if NaiveDateTime.diff(NaiveDateTime.utc_now, valid_until) < 0 do Repo.update(use_changeset(auth, %{used: true})) else - {:error, "token expired"} + {:error, "Token expired"} end end def use_token(%Authorization{used: true}), do: {:error, "Already used"}