Improve review mqtt topic (#11072)

* Don't request preview for current hour and fix content type

* Send before / after on messages

* Send before / after for end

* Handle specific cases

* remove log

* Fix update type
This commit is contained in:
Nicolas Mowen
2024-04-22 20:20:30 -06:00
committed by GitHub
parent d6e93d039d
commit 2d71cd7fe2
5 changed files with 70 additions and 16 deletions

View File

@@ -1351,6 +1351,6 @@ def preview_thumbnail(file_name: str):
)
response = make_response(jpg_bytes)
response.headers["Content-Type"] = "image/jpeg"
response.headers["Content-Type"] = "image/webp"
response.headers["Cache-Control"] = "private, max-age=31536000"
return response