Add configurable report and ban window timeouts.
On the success page for bans and reports, the window can now be configured to close after N seconds if desired. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -137,13 +137,26 @@ MEDIA_ROOT = "media/"
|
||||
# Media URL - the URL where media is served from
|
||||
MEDIA_URL = "media/"
|
||||
|
||||
# Thumbnail size in pixels.
|
||||
THUMB_SIZE = (200, 200)
|
||||
|
||||
# Max upload size in bytes.
|
||||
MAX_UPLOAD_SIZE = 25 * 1024**2
|
||||
|
||||
# Whether to use HCAPTCHA or not.
|
||||
USE_HCAPTCHA = False
|
||||
|
||||
if USE_HCAPTCHA:
|
||||
INSTALLED_APPS += ["hcaptcha"]
|
||||
HCAPTCHA_SITEKEY = env("HCAPTCHA_SITEKEY")
|
||||
HCAPTCHA_SECRET = env("HCAPTCHA_SECRET")
|
||||
|
||||
# How many seconds to wait before closing the report window after a report is
|
||||
# created.
|
||||
# By default, wait 5 seconds. This should give users plenty of time to read it.
|
||||
REPORT_WINDOW_CLOSE_TIMEOUT = 5
|
||||
|
||||
# How many seconds to wait before closing the ban window after a ban is created.
|
||||
# By default, wait 0 seconds and close immediately. It is assumed that the ban
|
||||
# is created successfully, and if an error occurs, the window won't close anyway.
|
||||
BAN_WINDOW_CLOSE_TIMEOUT = 0
|
||||
|
||||
Reference in New Issue
Block a user