From edd7c0c2220ba12c2a773f9ba1cf6e0e7a273856 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Thu, 29 Oct 2026 20:59:48 +0100 Subject: feat(receiver): send Webmention notification digests Batch verified Webmention notifications into a scheduled digest so bursts of incoming mentions do not generate a separate email for every verification. Track which mentions have already been reported and leave them pending when SMTP delivery fails so a later digest can retry safely. --- webmentions_ssg/models.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'webmentions_ssg/models.py') diff --git a/webmentions_ssg/models.py b/webmentions_ssg/models.py index 688da67..11740a8 100644 --- a/webmentions_ssg/models.py +++ b/webmentions_ssg/models.py @@ -110,6 +110,10 @@ class ReceivedWebmention(Base): nullable=False, ) + notification_sent_at: Mapped[datetime | None] = mapped_column( + DateTime(timezone=True), nullable=True, default=None + ) + __table_args__ = ( UniqueConstraint("source", "target", name="uq_webmention_source_target"), ) -- cgit v1.3.1