diff options
author | lain <lain@soykaf.club> | 2021-01-26 14:24:32 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2021-01-26 14:24:32 +0000 |
commit | 229acae6c3da541ebb0438cb7f310cdce1df92b3 (patch) | |
tree | 8b93f46ac090021e7e53db392ba54a3c48b31fda /lib/pleroma/web/twitter_api/controller.ex | |
parent | 71166b30a42ad3a8988049992bcab93c7e2ed656 (diff) | |
parent | 250e2020987b1fc65251ba9564e41b38ba060391 (diff) | |
download | pleroma-229acae6c3da541ebb0438cb7f310cdce1df92b3.tar.gz |
Merge branch 'develop' into '2435-list-multiple-users'
# Conflicts:
# CHANGELOG.md
Diffstat (limited to 'lib/pleroma/web/twitter_api/controller.ex')
-rw-r--r-- | lib/pleroma/web/twitter_api/controller.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/twitter_api/controller.ex b/lib/pleroma/web/twitter_api/controller.ex index 467c19e5e..077bfa70d 100644 --- a/lib/pleroma/web/twitter_api/controller.ex +++ b/lib/pleroma/web/twitter_api/controller.ex @@ -30,7 +30,7 @@ defmodule Pleroma.Web.TwitterAPI.Controller do def confirm_email(conn, %{"user_id" => uid, "token" => token}) do with %User{} = user <- User.get_cached_by_id(uid), - true <- user.local and user.confirmation_pending and user.confirmation_token == token, + true <- user.local and !user.is_confirmed and user.confirmation_token == token, {:ok, _} <- User.confirm(user) do redirect(conn, to: "/") end |