posts: make ghost threads cost DC again
who the hell disabled thisremotes/1693176582716663532/tmp_refs/heads/watchparty
parent
c5bf7b33c5
commit
39e7e61bcb
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue