tweak asset notifs

master
Aevann1 2022-10-10 14:13:43 +02:00
parent 75e593da00
commit c381466389
1 changed files with 9 additions and 4 deletions

View File

@ -147,10 +147,12 @@ if SITE not in ('pcmemes.net', 'watchpeopledie.co'):
author.coins += 250
g.db.add(author)
if v.id != author.id:
msg = f"@{v.username} (Admin) has approved a marsey you made: :{marsey.name}:\nYou have received 250 coins as a reward!"
send_repeatable_notification(author.id, msg)
if v.id not in (author.id, marsey.submitter_id):
if v.id != marsey.submitter_id and author.id != marsey.submitter_id:
msg = f"@{v.username} (Admin) has approved a marsey you submitted: :{marsey.name}:"
send_repeatable_notification(marsey.submitter_id, msg)
@ -304,8 +306,11 @@ if SITE not in ('pcmemes.net', 'watchpeopledie.co'):
g.db.add(hat_copy)
if v.id != author.id:
msg = f"@{v.username} (Admin) has approved a hat you made: '{hat.name}'"
send_repeatable_notification(author.id, msg)
if v.id != hat.submitter_id:
if v.id != hat.submitter_id and author.id != hat.submitter_id:
msg = f"@{v.username} (Admin) has approved a hat you submitted: '{hat.name}'"
send_repeatable_notification(hat.submitter_id, msg)