fix: don't create notes if not found in presentation route

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2023-07-14 20:01:23 +02:00
parent bf53443c67
commit e7327afbae
2 changed files with 3 additions and 3 deletions

View file

@ -78,7 +78,7 @@ exports.showNote = function (req, res, next) {
title,
opengraph
})
})
}, null, true)
}
exports.createFromPOST = function (req, res, next) {
@ -119,7 +119,7 @@ exports.doAction = function (req, res, next) {
default:
return res.redirect(config.serverURL + '/' + noteId)
}
}, null, false)
})
}
exports.downloadMarkdown = function (req, res, note) {