protect long posts from glowie award

master
Aevann 2024-04-05 12:32:32 +02:00
parent cbb5982bad
commit 549097e58a
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ def award_thing(v, thing_type, id):
if v.shadowbanned:
return {"message": f"{award_title} award given to {thing_type} successfully!"}
if obj.is_longpost and kind in {"ectoplasm", "candycorn", "candycane", "stab", "tilt", "queen", "chud", "marsify", "Furry", "Edgy", "Femboy", "Furry Founder", "Edgy Founder", "Femboy Founder"}:
if obj.is_longpost and kind in {"ectoplasm", "candycorn", "candycane", "stab", "glowie", "tilt", "queen", "chud", "marsify", "Furry", "Edgy", "Femboy", "Furry Founder", "Edgy Founder", "Femboy Founder"}:
abort(403, f'Long posts are protected from the {award_title} award!')
award = g.db.query(AwardRelationship).filter(