diff options
author | Alex Gleason <alex@alexgleason.me> | 2021-05-24 11:42:52 -0500 |
---|---|---|
committer | Alex Gleason <alex@alexgleason.me> | 2021-05-24 11:42:52 -0500 |
commit | b8663fbdd9022b63dbc61415884fed116181cd0e (patch) | |
tree | c958b51bb08649ef4dd5ffe4787fcb7deca1d1ca /lib/pleroma/web/twitter_api/controller.ex | |
parent | c9c6bd3e3627b1c592d9d5639cc8756c0862b77f (diff) | |
download | pleroma-b8663fbdd9022b63dbc61415884fed116181cd0e.tar.gz |
Revert "Cycles: refactor Pleroma.User, Pleroma.User.Registration"
This reverts commit 6124cfe9ae3eeb91fba9ecd1c8d5558fcc16c1c8.
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 852af9d30..077bfa70d 100644 --- a/lib/pleroma/web/twitter_api/controller.ex +++ b/lib/pleroma/web/twitter_api/controller.ex @@ -31,7 +31,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.is_confirmed and user.confirmation_token == token, - {:ok, _} <- User.Registration.confirm(user) do + {:ok, _} <- User.confirm(user) do redirect(conn, to: "/") end end |