mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 22:08:41 +08:00

When calling the API to delete a user: ``` curl -X DELETE "https://discourse.example.com/admin/users/159.json" \ -H "Content-Type: multipart/form-data;" \ -H "Api-Key: ***" \ -H "Api-Username: ***" \ -F "delete_posts=true" \ -F "block_email=false" \ -F "block_urls=false" \ -F "block_ip=false" ``` Setting the parameters `block_email`, `block_urls` and `block_ip`explicitly to `false` did not work because the values weren't being parsed to boolean.