mindspace: close authority boundaries
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user