aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg/templates/emails
diff options
context:
space:
mode:
authorDennis Fink2026-11-22 11:11:23 +0100
committerDennis Fink2026-11-22 11:11:23 +0100
commit779d10051556242ba1e70b70f6c6e8f1158e861d (patch)
tree284d8228491f0a7ee9422a2100149adebad5aaa7 /webmentions_ssg/templates/emails
parentef90dc381322122ecfb9af039cf790de92807514 (diff)
downloadwebmentions-ssg-main.tar.gz
webmentions-ssg-main.zip
feat(receiver)!: enrich digest notification emailsHEADmain
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/templates/emails')
-rw-r--r--webmentions_ssg/templates/emails/verified_digest.txt20
1 files changed, 20 insertions, 0 deletions
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 <me+coding@dennisfink.me> #}
+{# 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