protect long posts from glowie award
parent
cbb5982bad
commit
549097e58a
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue