You've already forked obsidian-visualiser
Starting new file format "Map". Preparing editor for Map and Canvas editor with metadata folding UI. Fix comments filtering.
This commit is contained in:
@@ -24,12 +24,7 @@ export default defineEventHandler(async (e) => {
|
||||
{
|
||||
const session = await getUserSession(e);
|
||||
|
||||
if(content.private && (!session || !session.user))
|
||||
{
|
||||
setResponseStatus(e, 404);
|
||||
return;
|
||||
}
|
||||
if(session && session.user && session.user.id !== content.owner)
|
||||
if(!session || !session.user || session.user.id !== content.owner)
|
||||
{
|
||||
if(content.private)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user