From b084c82c5abb7c5425c32e008d56bb1e43ee9667 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Wed, 12 Apr 2023 21:42:57 +0200 Subject: [PATCH] app.show_media_thumb: add TODO for sending 404 with default thumbnail --- server/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server/app.py b/server/app.py index cf1be70..4e111c1 100644 --- a/server/app.py +++ b/server/app.py @@ -631,6 +631,7 @@ def show_media_thumb(media_id: int) -> ResponseReturnValue: # do send only 404 (not default thumbnail) as element does not exist (so cannot even have default) return make_response(f"Not found", 404) if element.thumbnail is None: + # TODO send 404 along default thumbnail return redirect("/static/thumbnail_missing.webp") thumb = element.thumbnail # TODO do not load data from database until send_file requires that