[#1304] Moved remaining fields from User.Info to User.

Misc. fixes / improvements.
This commit is contained in:
Ivan Tashkinov 2019-10-20 13:42:42 +03:00
commit e8843974cb
14 changed files with 355 additions and 205 deletions

View file

@ -23,7 +23,9 @@ defmodule Pleroma.Web.TwitterAPI.Controller do
with %User{} = user <- User.get_cached_by_id(uid),
true <- user.local and user.confirmation_pending and user.confirmation_token == token,
{:ok, _} <-
User.update_and_set_cache(User.confirmation_changeset(user, need_confirmation: false)) do
user
|> User.confirmation_changeset(need_confirmation: false)
|> User.update_and_set_cache() do
redirect(conn, to: "/")
end
end