Skip to content

v2.50.0 — opt-in comment image uploads from your own R2 bucket

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Dec 20:52
· 1 commit to main since this release

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 upgrade applies them; otherwise run npm 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.