Starting new file format "Map". Preparing editor for Map and Canvas editor with metadata folding UI. Fix comments filtering.

This commit is contained in:
2025-01-06 17:46:31 +01:00
parent 896af11fa7
commit 6f305397a8
13 changed files with 71 additions and 45 deletions

View File

@@ -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)
{