diff --git a/files/helpers/const.py b/files/helpers/const.py index a1ab92b36..fa87d5e3b 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -333,6 +333,7 @@ COMMENT_MAX_DEPTH = 200 TRANSFER_MESSAGE_LENGTH_LIMIT = 200 # do not make larger than 10000 characters (comment limit) without altering the table MIN_REPOST_CHECK_URL_LENGTH = 9 # also change the constant in checkRepost() of submit.js ADMIN_PING_TRUESCORE_MINIMUM = 500 +TRUESCORE_DONATE_LIMIT = 100 LOGGEDIN_ACTIVE_TIME = 15 * 60 PFP_DEFAULT_MARSEY = True diff --git a/files/helpers/jinja2.py b/files/helpers/jinja2.py index b4ad87454..535b14bd6 100644 --- a/files/helpers/jinja2.py +++ b/files/helpers/jinja2.py @@ -52,4 +52,5 @@ def inject_constants(): "EMAIL_REGEX_PATTERN":EMAIL_REGEX_PATTERN, "CONTENT_SECURITY_POLICY_DEFAULT":CONTENT_SECURITY_POLICY_DEFAULT, "CONTENT_SECURITY_POLICY_HOME":CONTENT_SECURITY_POLICY_HOME, + "TRUESCORE_DONATE_LIMIT":TRUESCORE_DONATE_LIMIT, } diff --git a/files/routes/static.py b/files/routes/static.py index 487947563..4fd54dc57 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -413,7 +413,7 @@ if not os.path.exists(f'files/templates/donate_{SITE_NAME}.html'): @app.get('/donate') @auth_required def donate(v): - if v.truecoins < 1000: abort(404) + if v.truecoins < TRUESCORE_DONATE_LIMIT: abort(404) return render_template(f'donate_{SITE_NAME}.html', v=v) diff --git a/files/templates/header.html b/files/templates/header.html index b9aa2fef1..b8a41be5e 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -238,7 +238,7 @@