action_fallback(:errors)
- def user_delete(%{assigns: %{user: admin}} = conn, %{"nickname" => nickname}) do
+ def user_delete(conn, %{"nickname" => nickname}) do
User.get_cached_by_nickname(nickname)
- |> User.delete(admin.ap_id)
+ |> User.delete()
conn
|> json(nickname)