forked from MarseyWorld/MarseyWorld
protect effortposts from stab award (mainly for comments tbh)
parent
422ff7ede2
commit
7ee1060e33
|
@ -548,7 +548,7 @@ def award_thing(v, thing_type, id):
|
||||||
badge_grant(badge_id=185, user=author)
|
badge_grant(badge_id=185, user=author)
|
||||||
if v.id == author.id:
|
if v.id == author.id:
|
||||||
session['event_music'] = False
|
session['event_music'] = False
|
||||||
elif kind in {"ectoplasm", "candy-corn"}:
|
elif kind in {"ectoplasm", "candy-corn", "stab"}:
|
||||||
if thing.is_effortpost:
|
if thing.is_effortpost:
|
||||||
abort(403, f'Effortposts are protected from the {award_title} award!')
|
abort(403, f'Effortposts are protected from the {award_title} award!')
|
||||||
elif kind == "spider":
|
elif kind == "spider":
|
||||||
|
|
Loading…
Reference in New Issue