mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-27 08:16:16 +00:00
user: make User.delete() return data consistent with Object.delete()
This commit is contained in:
parent
2c3bfd7f76
commit
f584a603f9
|
@ -7,7 +7,7 @@ defmodule Mix.Tasks.RmUser do
|
||||||
Mix.Task.run("app.start")
|
Mix.Task.run("app.start")
|
||||||
|
|
||||||
with %User{local: true} = user <- User.get_by_nickname(nickname) do
|
with %User{local: true} = user <- User.get_by_nickname(nickname) do
|
||||||
User.delete(user)
|
{:ok, _} = User.delete(user)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -657,7 +657,7 @@ defmodule Pleroma.User do
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
:ok
|
{:ok, user}
|
||||||
end
|
end
|
||||||
|
|
||||||
def html_filter_policy(%User{info: %{"no_rich_text" => true}}) do
|
def html_filter_policy(%User{info: %{"no_rich_text" => true}}) do
|
||||||
|
|
Loading…
Reference in a new issue