Commit f584a603 authored by kaniini's avatar kaniini
Browse files

user: make User.delete() return data consistent with Object.delete()

parent 2c3bfd7f
...@@ -7,7 +7,7 @@ def run([nickname]) do ...@@ -7,7 +7,7 @@ def run([nickname]) 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 @@ def delete(%User{} = user) do ...@@ -657,7 +657,7 @@ def delete(%User{} = 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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment