aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/twitter_api/controller.ex
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2021-05-24 11:42:52 -0500
committerAlex Gleason <alex@alexgleason.me>2021-05-24 11:42:52 -0500
commitb8663fbdd9022b63dbc61415884fed116181cd0e (patch)
treec958b51bb08649ef4dd5ffe4787fcb7deca1d1ca /lib/pleroma/web/twitter_api/controller.ex
parentc9c6bd3e3627b1c592d9d5639cc8756c0862b77f (diff)
downloadpleroma-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.ex2
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