diff options
| author | Dennis Fink | 2026-11-16 22:21:19 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-11-16 22:21:19 +0100 |
| commit | 354a5b449077478b141683bafbab47c9dc169d21 (patch) | |
| tree | b2d0be9cb848faf2f9944bb69a63f9fd9a857dbd /webmentions_ssg/config.py | |
| parent | f7d846b66ae4286518ecc20537ba19c5afadf7f4 (diff) | |
| download | webmentions-ssg-354a5b449077478b141683bafbab47c9dc169d21.tar.gz webmentions-ssg-354a5b449077478b141683bafbab47c9dc169d21.zip | |
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.
Diffstat (limited to 'webmentions_ssg/config.py')
| -rw-r--r-- | webmentions_ssg/config.py | 3 |
1 files changed, 3 insertions, 0 deletions
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: |
