deleteUser now succeeds for a user who has no comments (e.g. one who only logged in) instead of failing on the missing per-user bucket. In hard mode the per-user bucket is deleted, tolerating bbolt's ErrBucketNotFound so a bucket left behind by an earlier partial removal is still removed; the comment-deletion failure path now wraps the actual error. Because the engine cannot distinguish a valid login-only user from a never-existed one, deletion is idempotent: /admin/deleteme returns 200 for an unknown (but validly signed) token rather than 400. The deleteme test is updated to this contract, engine tests cover hard and soft deletion of login-only and unknown users, and the API docs note the idempotent behaviour.
Remark42 site
Work on your local environment
Requirements:
- Node.js v20 or higher - install from package or with Homebrew
- Yarn 1.22 or higher - once you have Node.js, run
npm i -g yarn
Development
Install dependencies and start the development server:
yarn
yarn dev
Build
yarn build
Work with Docker Compose
Build
Install dependencies and run development server inside Docker:
docker compose build
docker compose up server
Then serve files from ./build with your favorite server
Development
docker compose up --build server
Then head to http://localhost:8080