Fix rainbow award on non-rDrama sites.

master
Snakes 2022-10-17 23:10:40 -04:00
parent 599cab7365
commit 984d8675b5
Signed by: Snakes
GPG Key ID: E745A82778055C7E
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ def award_thing(v, thing_type, id):
if author.marsify: body = marsify(body) if author.marsify: body = marsify(body)
thing.body_html = sanitize(body, limit_pings=5) thing.body_html = sanitize(body, limit_pings=5)
g.db.add(thing) g.db.add(thing)
elif ("Femboy" in kind and kind == v.house): elif ("Femboy" in kind and kind == v.house) or kind == 'rainbow':
if author.rainbow: author.rainbow += 86400 if author.rainbow: author.rainbow += 86400
else: author.rainbow = int(time.time()) + 86400 else: author.rainbow = int(time.time()) + 86400
badge_grant(user=author, badge_id=171) badge_grant(user=author, badge_id=171)