New audit_log table records actor, action, target and a JSON snapshot
of the details, so entries stay readable after the target is deleted;
the actor is set to NULL when the user is removed. logAudit() is called
from upload delete (single and bulk), comment delete, tag removal, role
create/delete, role permission changes, role assign/revoke and MOTD
updates. Logging failures only warn and never fail the action itself.
The admin page gets an audit card behind the new audit.view permission
with action filter, click-to-filter by user, readable summaries per
action and server-side pagination. Action catalog lives in
shared/utils/audit.ts, labels under admin.auditActions (de/en).
Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Server-side video thumbnails: ffmpeg-static grabs a frame at ~1s,
scales it to 480px and stores it under /uploads/thumbs/ at upload
time (direct files, remote URLs and comment attachments)
- YouTube thumbnails are downloaded once at upload time instead of
being hotlinked from i.ytimg.com on every render; remote URL kept
as fallback for legacy rows
- thumbUrl now covers video/audio/youtube/twitch in grid meta,
profile uploads and notifications
- Generated thumbnail files are removed on single/bulk delete
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>