From 779d10051556242ba1e70b70f6c6e8f1158e861d Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Sun, 22 Nov 2026 11:11:23 +0100 Subject: feat(receiver)!: enrich digest notification emails 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. --- webmentions_ssg/config.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'webmentions_ssg/config.py') 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.") -- cgit v1.3.1