This commit is contained in:
2026-04-22 15:46:40 +09:00
parent ba04eaf573
commit aca08932f3
+1 -1
View File
@@ -128,7 +128,7 @@ async def thumbnail(request: Request, path: str) -> Response:
svg_filename = "error.svg" if template_type == "error" else "normal.svg"
fonts_dir = Path.cwd().joinpath("public", "assets", "fonts")
svg_path = Path.cwd().joinpath("public", "assets", "images", "thumbnail", svg_filename)
svg_path = Path.cwd().joinpath("public", "assets", "images", "thumbnails", svg_filename)
svg = svg_path.read_text(encoding="utf-8")
svg = svg.replace("__PATH__", escape(path_display))
svg = svg.replace("__TITLE__", escape(title))