From 9ad9bdd9363dedf50ab3fbe70375bd817f92512b Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Thu, 15 Dec 2022 15:55:33 -0700 Subject: Implement post rate limits, move to signed cookies Also improve the test harness a little Fixes #112 --- users/views/admin/settings.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'users/views') 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", -- cgit v1.2.3