diff options
author | Andrew Godwin | 2022-12-15 15:55:33 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-12-15 15:55:33 -0700 |
commit | 9ad9bdd9363dedf50ab3fbe70375bd817f92512b (patch) | |
tree | 01cfc99d4755e6f85c7e2a09f513c9bec4eedb65 /users/views/admin | |
parent | 612ab4bcdf127adcff58466e96e48d62b6036b15 (diff) | |
download | takahe-9ad9bdd9363dedf50ab3fbe70375bd817f92512b.tar.gz takahe-9ad9bdd9363dedf50ab3fbe70375bd817f92512b.tar.bz2 takahe-9ad9bdd9363dedf50ab3fbe70375bd817f92512b.zip |
Implement post rate limits, move to signed cookies
Also improve the test harness a little
Fixes #112
Diffstat (limited to 'users/views/admin')
-rw-r--r-- | users/views/admin/settings.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/users/views/admin/settings.py b/users/views/admin/settings.py index b9e2543..4786d83 100644 --- a/users/views/admin/settings.py +++ b/users/views/admin/settings.py @@ -38,6 +38,10 @@ class BasicSettings(AdminSettingsPage): "title": "Maximum Post Length", "help_text": "The maximum number of characters allowed per post", }, + "post_minimum_interval": { + "title": "Minimum Posting Interval", + "help_text": "The minimum number of seconds a user must wait between posts", + }, "content_warning_text": { "title": "Content Warning Feature Name", "help_text": "What the feature that lets users provide post summaries is called", @@ -102,6 +106,7 @@ class BasicSettings(AdminSettingsPage): "Signups": ["signup_allowed", "signup_invite_only", "signup_text"], "Posts": [ "post_length", + "post_minimum_interval", "content_warning_text", "hashtag_unreviewed_are_public", "emoji_unreviewed_are_public", |