From 1bc569e3e56eccc176f7a6f5546ecbea5d12a2ca Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 7 Oct 2023 18:04:44 +0300 Subject: [PATCH] make rainbow award affect posts its awarded on since it doesnt alter the body in any way --- files/routes/awards.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index acfbb4f44..3c0b62425 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -537,9 +537,8 @@ def award_thing(v, thing_type, id): if author.rainbow: author.rainbow += 86400 else: author.rainbow = int(time.time()) + 86400 badge_grant(user=author, badge_id=171) - if thing_type == 'comment' and (not thing.author.deflector or v == thing.author): - thing.rainbowed = True - g.db.add(thing) + thing.rainbowed = True + g.db.add(thing) elif kind == "emoji": award.note = award.note.strip(":").lower() emoji = g.db.query(Emoji).filter_by(name=award.note).one_or_none()