diff --git a/files/helpers/const.py b/files/helpers/const.py index d90910bc2..530403b55 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -381,6 +381,7 @@ MIN_REPOST_CHECK_URL_LENGTH = 9 # also change the constant in checkRepost() of s TRUESCORE_DONATE_LIMIT = 100 COSMETIC_AWARD_COIN_AWARD_PCT = 0.10 TRUESCORE_CHAT_LIMIT = 0 +POST_GHOST_COST = 100 LOGGEDIN_ACTIVE_TIME = 15 * 60 PFP_DEFAULT_MARSEY = True diff --git a/files/helpers/jinja2.py b/files/helpers/jinja2.py index 2d132e895..e1e9a1d5f 100644 --- a/files/helpers/jinja2.py +++ b/files/helpers/jinja2.py @@ -55,5 +55,5 @@ def inject_constants(): "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, "TIERS_ID_TO_NAME":TIERS_ID_TO_NAME + "TIME_FILTERS":TIME_FILTERS, "HOUSES":HOUSES, "TIERS_ID_TO_NAME":TIERS_ID_TO_NAME, "POST_GHOST_COST":POST_GHOST_COST } diff --git a/files/routes/posts.py b/files/routes/posts.py index bb5f3e98f..512589e4d 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -785,7 +785,7 @@ def submit_post(v, sub=None): flag_over_18 = request.values.get("over_18", False, bool) flag_private = request.values.get("private", False, bool) flag_club = (request.values.get("club", False, bool) and FEATURES['COUNTRY_CLUB']) - flag_ghost = request.values.get("ghost", False, bool) + flag_ghost = request.values.get("ghost", False, bool) and v.charge_account('coins', POST_GHOST_COST) if embed and len(embed) > 1500: embed = None if embed: embed = embed.strip() diff --git a/files/templates/submit.html b/files/templates/submit.html index 62f554510..1de17423d 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -118,7 +118,7 @@
- +