sync update from LAN repo (source ji @ 85078a31)

This commit is contained in:
gozeros committed 2026-10-21 15:09:16 +08:00
1 parent 5d6627af50
commit e602d88695
864 files changed
+99150 -6346

No files matched your search

@@ -243,8 +243,9 @@ def delete_file_safe(base_dir: Path, filename: str, *, convertible_extensions: s
file_path.unlink()
# Clean up companion markdown generated during upload conversion.
if convertible_extensions and file_path.suffix.lower() in convertible_extensions:
file_path.with_suffix(".md").unlink(missing_ok=True)
if convertible_extensions and file_path.suffix.lower() in convertible_extensions:
file_path.with_name(f"{file_path.name}.md").unlink(missing_ok=True)
file_path.with_suffix(".md").unlink(missing_ok=True)
return {"success": True, "message": f"Deleted {filename}"}