Repository navigation
Highlights:
- feat: opt-in comment image uploads. Signed-in commenters attach up to 4 images (2 MiB each; JPEG, PNG, WebP, GIF). Files live in an R2 bucket you own and load straight from its custom domain; the Worker never proxies them. Off by default. Setup: docs/images.md.
- feat: two panel settings, both off by default: "Image uploads" (Features) and "Hold image comments" (Moderation). Admins are exempt from the hold.
- perf: embed.js is about 0.4 KB smaller gzipped, and comment timestamps reuse their Intl formatters.
Notes for operators:
- Two migrations: 0034_uploads (the uploads ledger) and 0035_uploads_release_on_delete (a trigger that frees a comment's files when it is deleted).
npm run upgradeapplies them; otherwise runnpm run migrate -- --remote. - New optional var IMAGE_PUBLIC_URL and optional R2 binding IMAGES. Uploads need both plus the panel setting. Without them nothing changes.
- If you serve embed.js from the release page, also serve the attached embed-upload.js from the same origin. If your host CSP pins /embed.js, allow /embed-upload.js too, and add your image domain to img-src.
- chore: codeql-action 4.39.5.