feat: add config option to disable external link warning

Since it is heavily requested by users, this adds a new config option
to disable the previously introduced external link warning.
Be aware however, that disabling this config option weakens the
security of your HedgeDoc instance and is therefore only recommended
for closed trustworthy user groups.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
Erik Michelson
2026-07-05 00:28:59 +02:00
committed by Philip Molares
parent d20619315e
commit 0ebf0dbc6b
7 changed files with 32 additions and 23 deletions

View File

@@ -5,6 +5,7 @@
### Enhancements
- Added external link whitelist setting (`externalLinkWhitelist` in config.json or `CMD_EXTERNAL_LINK_WHITELIST`) to skip warning page for certain domains
- Added external link warning setting (`externalLinkWarning` in config.json or `CMD_EXTERNAL_LINK_WARNING`) to disable the external link warning page entirely
- Enabled `.webp` for file uploads (for all backends but `imgur`, since it does not support it)
### Bugfixes