You've already forked obsidian-visualiser
Add ProseSmall as a private commentary (using %%)
This commit is contained in:
@@ -20,8 +20,6 @@ export default defineEventHandler(async (e) => {
|
||||
'type': explorerContentTable.type,
|
||||
'navigable': explorerContentTable.navigable,
|
||||
'private': explorerContentTable.private,
|
||||
'order': explorerContentTable.order,
|
||||
'visit': explorerContentTable.visit,
|
||||
}).from(explorerContentTable).where(eq(explorerContentTable.path, sql.placeholder('path'))).prepare().get({ path });
|
||||
|
||||
if(content !== undefined)
|
||||
@@ -39,7 +37,11 @@ export default defineEventHandler(async (e) => {
|
||||
return;
|
||||
}
|
||||
|
||||
return content;
|
||||
return { path: content.path,
|
||||
owner: content.owner,
|
||||
title: content.title,
|
||||
type: content.type,
|
||||
};
|
||||
}
|
||||
|
||||
setResponseStatus(e, 404);
|
||||
|
||||
Reference in New Issue
Block a user