allow negative non-cosmetic awards on distinguished posts and comments

master
Aevann 2024-11-07 13:30:39 +02:00
parent ded55ab333
commit 7192b056ed
1 changed files with 2 additions and 2 deletions

View File

@ -197,8 +197,8 @@ def award_thing(v, thing_type, id):
if obj.is_longpost and kind in {"ectoplasm", "candycorn", "candycane", "stab", "glowie", "tilt", "queen", "chud", "marsify", "owoify", "sharpen", "rainbow"}:
stop(403, f'Long posts and comments are immune to the {award_title} award!')
if obj.distinguished:
stop(403, 'Distinguished posts and comments are immune to awards!')
if obj.distinguished and (AWARDS[kind]['cosmetic'] or AWARDS[kind]['negative']):
stop(403, 'Distinguished posts and comments are immune to cosmetic and negative awards!')
note = request.values.get("note", "").strip()
if len(note) > 200: