diff --git a/files/helpers/const.py b/files/helpers/const.py index 2655547477..3aa78261bf 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -470,6 +470,9 @@ LEADERBOARD_LIMIT = PAGE_SIZE HOUSE_JOIN_COST = 500 HOUSE_SWITCH_COST = 2000 +DONATE_SERVICE = "Gumroad" if not KOFI_TOKEN or KOFI_TOKEN == 'blahblahblah' else "KoFi" +DONATE_LINK = GUMROAD_LINK if not KOFI_TOKEN or KOFI_TOKEN == 'blahblahblah' else KOFI_LINK + if SITE.startswith('rdrama.'): FEATURES['PRONOUNS'] = True FEATURES['HOUSES'] = True diff --git a/files/helpers/jinja2.py b/files/helpers/jinja2.py index fc227b1e29..334382c77c 100644 --- a/files/helpers/jinja2.py +++ b/files/helpers/jinja2.py @@ -53,6 +53,7 @@ def inject_constants(): "CONTENT_SECURITY_POLICY_DEFAULT":CONTENT_SECURITY_POLICY_DEFAULT, "CONTENT_SECURITY_POLICY_HOME":CONTENT_SECURITY_POLICY_HOME, "TRUESCORE_DONATE_LIMIT":TRUESCORE_DONATE_LIMIT, + "DONATE_LINK":DONATE_LINK, "DONATE_SERVICE":DONATE_SERVICE, "BAN_EVASION_DOMAIN":BAN_EVASION_DOMAIN, "HOUSE_JOIN_COST":HOUSE_JOIN_COST, "HOUSE_SWITCH_COST":HOUSE_SWITCH_COST, "IMAGE_FORMATS":IMAGE_FORMATS, "PAGE_SIZES":PAGE_SIZES, "THEMES":THEMES, "COMMENT_SORTS":COMMENT_SORTS, "SORTS":SORTS, "TIME_FILTERS":TIME_FILTERS, "HOUSES":HOUSES } diff --git a/files/templates/settings_personal.html b/files/templates/settings_personal.html index 7d64682135..bc364f42ec 100644 --- a/files/templates/settings_personal.html +++ b/files/templates/settings_personal.html @@ -31,7 +31,7 @@
You're a freeloader!
{% endif %} {% if not v.patron and v.truecoins >= TRUESCORE_DONATE_LIMIT %} -To stop freeloading, first verify your email, support us on Gumroad with the same email, and click "Claim {{patron}} Rewards"
+To stop freeloading, first verify your email, support us on {{DONATE_SERVICE}} with the same email, and click "Claim {{patron}} Rewards"
{% else %}To stop freeloading, you can donate via crypto. Please let us know first beforehand by sending us a modmail. Thanks!
{% endif %}