From ce802830c37565d325ba2ecc060443550abb1955 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Sun, 25 Oct 2026 22:26:40 +0100 Subject: refactor(core): simplify configuration keys Remove the WEBMENTIONS_SSG prefix from application-specific configuration settings and update validators, tasks, and tests to use the shorter names. --- webmentions_ssg/forms/validators.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'webmentions_ssg/forms/validators.py') diff --git a/webmentions_ssg/forms/validators.py b/webmentions_ssg/forms/validators.py index 761dc46..990d91a 100644 --- a/webmentions_ssg/forms/validators.py +++ b/webmentions_ssg/forms/validators.py @@ -83,10 +83,7 @@ class AllowedHostname: :param field: Field containing the URL to validate. :raises ValidationError: If the URL hostname is not configured as allowed. """ - if ( - urlsplit(field.data).hostname - in current_app.config["WEBMENTIONS_SSG_ALLOWED_HOSTNAMES"] - ): + if urlsplit(field.data).hostname in current_app.config["ALLOWED_HOSTNAMES"]: return raise ValidationError(self.message or field.gettext("Invalid input.")) -- cgit v1.3.1