Fix image serving: use cache_timeout not max_age (Quart API)

Quart's send_file uses cache_timeout= not max_age=. The TypeError on
every /api/images/<id> request caused a 500, which the browser rendered
as alt text.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-01 14:38:54 -05:00
parent 1890f0c7f1
commit 4c77eab84b
+1 -1
View File
@@ -31,5 +31,5 @@ async def serve_image(image_id: int):
return await send_file(
file_path,
mimetype=record.content_type,
max_age=86400,
cache_timeout=86400,
)