6e5cf8fd

By: Michael Lynch <git@mtlynch.io>

Let owners edit captions and delete media

Adapt the owner-ID middleware from the slice-1 branch (resolveUser,
requireOwner, ReadUserByID, AuthService.UserID) so handlers can
authorize the site owner, then add owner-only actions to edit a media
item's caption, clear it, or delete the item entirely.

The caption edits use htmx with PUT to replace the caption in place and
DELETE to clear it, re-rendering the caption section partial. Deleting a
photo removes the item along with its comments and reactions in one
transaction and tells htmx to redirect to the home page.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Suite timing

Time to Start Worker time Duration Time to finish
Config 1s 9s 9s 11s
Eval 9s 54s 54s 1m03s
Build 14s 5m17s 1m16s 1m31s
Test - - - -
Deploy - - - -
Suite 1s 6m21s 1m29s 1m31s

Timeline

0s10s20s30s40s50s1m1m10s1m20s1m30s