Profile pictures: upload + serving, initials fallback, admin kebab with Delete user #758
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat-757"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #757
avatars.go, created by the one-shot):PUT /api/v1/me/avatardecodes JPG/PNG (10 MB cap), center-crops square, re-encodes to a 256px JPEG — EXIF/GPS die at the server. Flatavatars/<user>.jpgbeside the runtime state (#138 migrates it); traversal-proof path mapping (RED-tested: sanitised names stay flat inside the dir).GET /api/v1/avatar/{user}authenticated with ETag/304; missing → honest 404. Self + admin (requireAdmin) deletes, 204-idempotent.applyAvatarlayers a background image over the untouched #657 initials lines (qa2/qa749 pins intact); on 404 nothing changes. Shows on the avatar button, menu identity block, andshareAvatarchips (guardedtypeofcall so the lifted-function tests keep executing). Profile gains the OpenCloud-style picture card (centered, Upload/Remove, hint) above Display name.Three extra runs, all census-class: my own traversal assertion tested the wrong property (".." substring vs staying-inside-dir), qa693's askDanger census 8→11, qa7's accent-on census 11→12. New ledger rule below.