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 --- core/models/config.py | 1 + 1 file changed, 1 insertion(+) (limited to 'core') diff --git a/core/models/config.py b/core/models/config.py index 9670c11..48da7de 100644 --- a/core/models/config.py +++ b/core/models/config.py @@ -216,6 +216,7 @@ class Config(models.Model): content_warning_text: str = "Content Warning" post_length: int = 500 + post_minimum_interval: int = 3 # seconds identity_min_length: int = 2 identity_max_per_user: int = 5 identity_max_age: int = 24 * 60 * 60 -- cgit v1.2.3