hedgedoc/lib
Erik Michelson 7e597226ec
Add HTTP 404 error on non-existent note downloads
When FreeURL mode is enabled and you called the /download route, the note was created and the user redirected to the blank note.
This is caused because the findNote method automatically creates a note when no existing one is found.
This commit adds a new parameter to the findNote method which allows to disable this behaviour. In that case a HTTP 404 error will be returned.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2021-02-17 22:02:47 +01:00
..
config Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
migrations Add missing catch 2020-12-02 19:39:06 +01:00
models Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
ot Fix logging in ot module 2018-11-13 23:30:13 +01:00
web Add HTTP 404 error on non-existent note downloads 2021-02-17 22:02:47 +01:00
workers Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
csp.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
errors.js Fix broken redirect on login 2020-03-21 16:56:09 +01:00
history.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
letter-avatars.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
logger.js Fix eslint warnings 2019-05-31 00:30:29 +02:00
realtime.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
response.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
utils.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00