pull/45/head
Aevann1 2022-12-04 21:30:33 +02:00
parent e0fd83c010
commit da643ea88b
4 changed files with 7 additions and 22 deletions

View File

@ -47,7 +47,7 @@ def award_timers(v, bot=False):
notify_if_not_bot("Your bird site award has expired!")
badge = v.has_badge(95)
if badge: g.db.delete(badge)
if v.progressivestack and v.progressivestack < now:
if v.progressivestack and v.progressivestack != 1 and v.progressivestack < now:
v.progressivestack = None
notify_if_not_bot("Your progressive stack has expired!")
badge = v.has_badge(94)
@ -76,7 +76,7 @@ def award_timers(v, bot=False):
notify_if_not_bot("Your earlylife status has expired!")
badge = v.has_badge(169)
if badge: g.db.delete(badge)
if v.marsify and v.marsify < now and v.marsify != 1:
if v.marsify and v.marsify != 1 and v.marsify < now:
v.marsify = 0
if SITE_NAME != 'rDrama': notify_if_not_bot("Your marsify status has expired!")
badge = v.has_badge(170)

View File

@ -557,20 +557,6 @@ if SITE == 'rdrama.net':
'programming',
}
BOOSTED_USERS = {
IMPASSIONATA_ID,
PIZZASHILL_ID,
SNAKES_ID,
JUSTCOOL_ID,
2008, #TransGirlTradWife
29, #QuadNarca
JOAN_ID,
4389, #WorldAroundEwe
5526, #Dramarama
3635, #HeyMoon
3377, #MIMW
}
GIFT_NOTIF_ID = CARP_ID
POLL_THREAD = 79285

View File

@ -321,11 +321,10 @@ def award_thing(v, thing_type, id):
if not FEATURES['PINS']:
abort(403)
if author.id in BOOSTED_USERS: abort(409, f"@{author.username} is already permanently progressive-stacked!")
if author.progressivestack: author.progressivestack += 21600
else: author.progressivestack = int(time.time()) + 21600
badge_grant(user=author, badge_id=94)
if author.progressivestack != 1:
if author.progressivestack: author.progressivestack += 21600
else: author.progressivestack = int(time.time()) + 21600
badge_grant(user=author, badge_id=94)
elif kind == "benefactor":
if author.patron: abort(409, f"@{author.username} is already a {patron.lower()}!")
author.patron = 1

View File

@ -170,7 +170,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
target.realupvotes = get_vote_count(0, True) # first arg is ignored here
mul = 1
if target.author.progressivestack or target.author.id in BOOSTED_USERS:
if target.author.progressivestack:
mul = 2
if cls == Submission:
if (target.domain.endswith('.win')