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/templates/emails/verified_digest.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 webmentions_ssg/templates/emails/verified_digest.txt (limited to 'webmentions_ssg/templates/emails/verified_digest.txt') diff --git a/webmentions_ssg/templates/emails/verified_digest.txt b/webmentions_ssg/templates/emails/verified_digest.txt new file mode 100644 index 0000000..959a1cf --- /dev/null +++ b/webmentions_ssg/templates/emails/verified_digest.txt @@ -0,0 +1,20 @@ +{# SPDX-FileCopyrightText: 2026 Dennis Fink #} +{# SPDX-License-Identifier: BSD-3-Clause #} +Hey, + +Your site has {{ count }} new verified webmention{{ "s" if count != 1 else "" }}! + +{{ "A page on another site links to your content, and we've verified it." if count == 1 else "Other sites are linking to your content, and we've verified the links." }} + +YOUR NEW WEBMENTIONS +-------------------- +{% for mention in mentions %} +{{ loop.index }}. Mentioned by: {{ mention.source }} + Links to: {{ mention.target }} + View details: {{ url_for('webmentions.received_detail', webmention_uuid=mention.uuid, _external=True) }} + +{% endfor %} +See all verified webmentions in your dashboard: +{{ url_for('webmentions.received_list', status='verified', _external=True) }} + +— Webmentions SSG -- cgit v1.3.1