protect effortposts from stab award (mainly for comments tbh)

master
Aevann 2023-10-29 02:44:44 +03:00
parent 422ff7ede2
commit 7ee1060e33
1 changed files with 1 additions and 1 deletions

View File

@ -548,7 +548,7 @@ def award_thing(v, thing_type, id):
badge_grant(badge_id=185, user=author)
if v.id == author.id:
session['event_music'] = False
elif kind in {"ectoplasm", "candy-corn"}:
elif kind in {"ectoplasm", "candy-corn", "stab"}:
if thing.is_effortpost:
abort(403, f'Effortposts are protected from the {award_title} award!')
elif kind == "spider":