From ccb61b00fa5758229e29975e03760b6fb7a13242 Mon Sep 17 00:00:00 2001 From: "mula.liu" Date: Mon, 11 May 2026 09:48:19 +0800 Subject: [PATCH] v0.9.7 --- backend/app/api/v1/shares.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/app/api/v1/shares.py b/backend/app/api/v1/shares.py index b5d9c8b..e303f65 100644 --- a/backend/app/api/v1/shares.py +++ b/backend/app/api/v1/shares.py @@ -474,6 +474,7 @@ async def get_project_share_file( ensure_share_access(share, request, password) file_path = storage_service.get_secure_path(project.storage_key, path) content = await storage_service.read_file(file_path) + content = rewrite_markdown_assets(content, f"/api/v1/shares/project/{share.share_code}/assets") return success_response(data={"content": content}) @@ -573,7 +574,7 @@ async def get_file_share_content( }) content = await storage_service.read_file(file_path) - content = rewrite_markdown_assets_for_pdf(content) + content = rewrite_markdown_assets(content, f"/api/v1/shares/files/{share.share_code}/assets") return success_response(data={ "type": "markdown", "filename": Path(share.file_path).name,