mindspace: close authority boundaries

This commit is contained in:
john
2026-07-27 15:34:35 +08:00
parent dfab78c75a
commit e94052ff24
78 changed files with 11962 additions and 2162 deletions
+9 -1
View File
@@ -1214,11 +1214,19 @@ export function createPublicationService(pool, options = {}) {
],
);
const html = await readPublicationHtmlWithWorkspaceFallback(row);
const workspaceRelativePath =
resolvePageWorkspaceRelativePath(row);
return {
html: await refreshPublishedHtmlDownloadLinks(row, html),
publication: publicationResponse({ ...row, view_count: Number(row.view_count) + 1 }),
ownerId: row.owner_id,
workspaceRelativePath: resolvePageWorkspaceRelativePath(row),
workspaceRelativePath,
workspacePublicUrl:
resolveWorkspaceMindSpacePublicUrl({
h5Root,
userId: row.owner_id,
relativePath: workspaceRelativePath,
}),
pageSource: {
pageId: row.page_id,
title: row.title,