From 9b00526ab79257b65cedd71595848f09ecf84279 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Sun, 15 Nov 2026 21:18:19 +0100 Subject: refactor(core)!: clarify Webmention domain terminology Rename ambiguous models, statuses, task modules, fields, and helpers so names reflect source documents, verification, endpoint discovery, and delivery state. Migrate persisted status values and database identifiers without losing existing Webmention data. BREAKING CHANGE: persisted status values and database schema names have changed, and several public Python names have been renamed. --- webmentions_ssg/forms.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'webmentions_ssg/forms.py') diff --git a/webmentions_ssg/forms.py b/webmentions_ssg/forms.py index c8ad0ba..1ce591d 100644 --- a/webmentions_ssg/forms.py +++ b/webmentions_ssg/forms.py @@ -104,7 +104,7 @@ class AllowedTargetHostname: raise ValidationError(self.message or field.gettext("Invalid input.")) -class PublicIPLiteral: +class RejectNonPublicIPLiteral: """Reject non-public IP literals without performing DNS in the web worker.""" def __call__(self, form: BaseForm, field: Field) -> None: @@ -138,7 +138,12 @@ class WebmentionSubmissionForm(FlaskForm): source = StringField( "source", - validators=[InputRequired(), MaxURLBytes(), StrictHTTPURL(), PublicIPLiteral()], + validators=[ + InputRequired(), + MaxURLBytes(), + StrictHTTPURL(), + RejectNonPublicIPLiteral(), + ], ) target = StringField( "target", -- cgit v1.3.1