Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into feature/845-improve-status-deletion
This commit is contained in:
parent
d089ff2460
commit
ce6ca0fefe
9 changed files with 40 additions and 21 deletions
|
|
@ -352,7 +352,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilController do
|
|||
def delete_account(%{assigns: %{user: user}} = conn, params) do
|
||||
case CommonAPI.Utils.confirm_current_password(user, params["password"]) do
|
||||
{:ok, user} ->
|
||||
Task.start(fn -> User.delete(user) end)
|
||||
User.delete(user)
|
||||
json(conn, %{status: "success"})
|
||||
|
||||
{:error, msg} ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue