From 354a5b449077478b141683bafbab47c9dc169d21 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Mon, 16 Nov 2026 22:21:19 +0100 Subject: feat(receiver): add sorting and page size controls Allow received Webmentions to be sorted by status, source, target, received time, or updated time with stable pagination and accessible sortable headers. Add configurable per-page sizing and preserve sorting, filters, and page size across pagination and administrative actions. --- webmentions_ssg/config.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'webmentions_ssg/config.py') diff --git a/webmentions_ssg/config.py b/webmentions_ssg/config.py index 2110a62..1419b82 100644 --- a/webmentions_ssg/config.py +++ b/webmentions_ssg/config.py @@ -64,6 +64,8 @@ class DefaultConfig: VERIFICATION_RECOVERY_SCHEDULE = "*/5 * * * *" # Purge terminal failed/source-removed received Webmentions after 30 days. RECEIVED_RETENTION_DAYS = 30 + # Maximum rows that an admin can request per received Webmentions page. + RECEIVED_MAX_PAGE_SIZE = 100 RECEIVED_RETENTION_SCHEDULE = "0 3 * * *" # Scanner @@ -224,6 +226,7 @@ def validated_config_overrides( "MAX_CONTENT_LENGTH", "MAX_WEBMENTION_URL_BYTES", "RECEIVED_RETENTION_DAYS", + "RECEIVED_MAX_PAGE_SIZE", ): value = config[key] if type(value) is not int or value <= 0: -- cgit v1.3.1