From 3c1b7a094d40d6bb64eb9193b7da21623b465e2f Mon Sep 17 00:00:00 2001 From: Corentin Date: Tue, 12 May 2026 09:08:03 +0000 Subject: [PATCH] fix(backlinks): match database-view node type in kebab-case The shared schema in @docmost/editor-ext registers the node as 'database-view'; the parser was comparing against the camelCase form so database_embed links were never extracted. --- .../acadenice/backlinks/services/backlink-parser.service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/server/src/core/acadenice/backlinks/services/backlink-parser.service.ts b/apps/server/src/core/acadenice/backlinks/services/backlink-parser.service.ts index 194e5f97..7bcb10b0 100644 --- a/apps/server/src/core/acadenice/backlinks/services/backlink-parser.service.ts +++ b/apps/server/src/core/acadenice/backlinks/services/backlink-parser.service.ts @@ -137,8 +137,9 @@ export class BacklinkParserService { }); } - // --- R3.1.c databaseView node (embed links a page indirectly via pageId attr) --- - if (type === 'databaseView' && attrs.pageId) { + // --- R3.1.c database-view node (embed links a page indirectly via pageId attr) --- + // The shared schema in @docmost/editor-ext uses kebab-case as the node name. + if (type === 'database-view' && attrs.pageId) { out.push({ linkType: 'database_embed', pageId: attrs.pageId,