forked from rDrama/rDrama
make rainbow award affect posts its awarded on since it doesnt alter the body in any way
parent
4c5df47517
commit
1bc569e3e5
|
@ -537,7 +537,6 @@ def award_thing(v, thing_type, id):
|
||||||
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)
|
||||||
if thing_type == 'comment' and (not thing.author.deflector or v == thing.author):
|
|
||||||
thing.rainbowed = True
|
thing.rainbowed = True
|
||||||
g.db.add(thing)
|
g.db.add(thing)
|
||||||
elif kind == "emoji":
|
elif kind == "emoji":
|
||||||
|
|
Loading…
Reference in New Issue