forked from rDrama/rDrama
1
0
Fork 0

make sure notif order is always correct

master
Aevann 2023-11-16 15:18:56 +02:00
parent 39123997f0
commit 0708bafbd9
1 changed files with 3 additions and 3 deletions

View File

@ -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