From 984d8675b5e6f7d1e9409cfb8d8932ca4c7fd0a9 Mon Sep 17 00:00:00 2001 From: TLSM Date: Mon, 17 Oct 2022 23:10:40 -0400 Subject: [PATCH] Fix rainbow award on non-rDrama sites. --- files/routes/awards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index 84c0a9b29..99d47524f 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -358,7 +358,7 @@ def award_thing(v, thing_type, id): if author.marsify: body = marsify(body) thing.body_html = sanitize(body, limit_pings=5) 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 else: author.rainbow = int(time.time()) + 86400 badge_grant(user=author, badge_id=171)