fix local attachment paths in exports (#1013)

This commit is contained in:
Philip Okugbe
2025-04-11 13:18:44 +01:00
committed by GitHub
parent f9711918a3
commit 27fa45a769
2 changed files with 22 additions and 9 deletions
@@ -21,7 +21,7 @@ import {
getProsemirrorContent,
PageExportTree,
replaceInternalLinks,
updateAttachmentUrls,
updateAttachmentUrlsToLocalPaths,
} from './utils';
import { PageRepo } from '@docmost/db/repos/page/page.repo';
import { Node } from '@tiptap/pm/model';
@@ -193,7 +193,7 @@ export class ExportService {
if (includeAttachments) {
await this.zipAttachments(updatedJsonContent, page.spaceId, folder);
updatedJsonContent = updateAttachmentUrls(updatedJsonContent);
updatedJsonContent = updateAttachmentUrlsToLocalPaths(updatedJsonContent);
}
const pageTitle = getPageTitle(page.title);