diff options
| author | Dennis Fink | 2026-11-22 11:11:23 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-11-22 11:11:23 +0100 |
| commit | 779d10051556242ba1e70b70f6c6e8f1158e861d (patch) | |
| tree | 284d8228491f0a7ee9422a2100149adebad5aaa7 /webmentions_ssg/config.py | |
| parent | ef90dc381322122ecfb9af039cf790de92807514 (diff) | |
| download | webmentions-ssg-779d10051556242ba1e70b70f6c6e8f1158e861d.tar.gz webmentions-ssg-779d10051556242ba1e70b70f6c6e8f1158e861d.zip | |
Render plain-text digests with source, target, per-Webmention detail
links, and a filtered dashboard link while preserving singular and
plural wording.
Freeze the notified rows before sending so mentions arriving during
delivery are left for the next digest.
BREAKING CHANGE: enabling `DIGEST_EMAIL` now requires `SERVER_NAME` so
background workers can generate absolute administration URLs.
Diffstat (limited to 'webmentions_ssg/config.py')
| -rw-r--r-- | webmentions_ssg/config.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/webmentions_ssg/config.py b/webmentions_ssg/config.py index 3d05e5d..514432a 100644 --- a/webmentions_ssg/config.py +++ b/webmentions_ssg/config.py @@ -236,6 +236,16 @@ def validated_config_overrides( except (TypeError, ValueError) as exc: raise type(exc)(f"{key}: {exc}") from exc + # Digests are rendered from a background worker without a request host. + # Require a public hostname at startup instead of silently omitting links. + if config.get("DIGEST_EMAIL") and not ( + isinstance(config.get("SERVER_NAME"), str) and config["SERVER_NAME"].strip() + ): + raise RuntimeError( + "Configure SERVER_NAME for the Webmentions SSG admin interface " + "when DIGEST_EMAIL is enabled." + ) + if type(config["ALLOWLIST_ENABLED"]) is not bool: raise ValueError("ALLOWLIST_ENABLED must be a boolean.") |
