make rainbow award affect posts its awarded on since it doesnt alter the body in any way

pull/215/head
Aevann 2023-10-07 18:04:44 +03:00
parent 4c5df47517
commit 1bc569e3e5
1 changed files with 2 additions and 3 deletions

View File

@ -537,7 +537,6 @@ 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)
elif kind == "emoji":