forked from rDrama/rDrama
make sure notif order is always correct
parent
39123997f0
commit
0708bafbd9
|
@ -597,11 +597,11 @@ def award_thing(v, thing_type, id):
|
|||
if author.deflector and AWARDS[kind]['deflectable']:
|
||||
msg = f"@{v.username} has tried to give your [{thing_type}]({obj.shortlink}) the {award_title} Award but it was deflected and applied to them :marseytroll:"
|
||||
n = send_repeatable_notification(author.id, msg)
|
||||
if n: n.created_utc -= 1
|
||||
if n: n.created_utc -= 2
|
||||
|
||||
msg = f"@{obj.author_name} is under the effect of a deflector award; your {award_title} Award has been deflected back to you :marseytroll:"
|
||||
n = send_repeatable_notification(v.id, msg)
|
||||
if n: n.created_utc -= 1
|
||||
if n: n.created_utc -= 2
|
||||
elif kind not in {'spider', 'jumpscare'}:
|
||||
msg = f"@{v.username} has given [{link_text_in_notif}]({obj.shortlink}) the {award_title} Award"
|
||||
|
||||
|
@ -619,7 +619,7 @@ def award_thing(v, thing_type, id):
|
|||
msg += f"\n\n**You now have to say this phrase in all posts and comments you make for 24 hours:**"
|
||||
msg += f"\n\n> {note}"
|
||||
n = send_repeatable_notification(author.id, msg)
|
||||
if n: n.created_utc -= 1
|
||||
if n: n.created_utc -= 2
|
||||
|
||||
if author.received_award_count: author.received_award_count += 1
|
||||
else: author.received_award_count = 1
|
||||
|
|
Loading…
Reference in New Issue