forked from rDrama/rDrama
1
0
Fork 0

posts: make ghost threads cost DC again

who the hell disabled this
master
justcool393 2022-11-13 19:52:32 -06:00
parent c5bf7b33c5
commit 39e7e61bcb
4 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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
}

View File

@ -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()

View File

@ -118,7 +118,7 @@
<div class="custom-control custom-checkbox mb-5">
<input onchange='ghost_toggle(this)' autocomplete="off" type="checkbox" class="custom-control-input" id="post-ghost" name="ghost">
<label class="custom-control-label" for="post-ghost">Ghost thread</label>
<label class="custom-control-label" for="post-ghost">Ghost thread (cost {{POST_GHOST_COST}} coins)</label>
</div>
</div>