Harden attachment ID resolution and missing-file handling

- Sanitize thread-derived attachment ID segments to safe, bounded tokens
- Resolve attachment IDs only when a matching file exists on disk
- Return 404 (not 400) for missing attachment IDs in the attachment route
- Add attachmentStore tests for ID sanitization and extension-based path lookup
70c9147c7fJulius Marminge committed on 3/2/2026, 4:06:21 AM· committed by Julius Marmingeparentc0054cb
5 files changedLine totals unavailable