From 50f60a5b5cf78de46f5a2c3caf040940bfe0c2ee Mon Sep 17 00:00:00 2001 From: justcool393 Date: Sat, 17 Sep 2022 17:09:01 -0700 Subject: [PATCH] don't allow flairlocks on ghost posts (#358) flairlocks can expose ghosts --- files/routes/awards.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/routes/awards.py b/files/routes/awards.py index a5a8e5854..47a16e2c4 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -289,6 +289,7 @@ def award_thing(v, thing_type, id): badge_grant(user=author, badge_id=28) elif kind == "flairlock": + if thing.ghost: abort(403) new_name = note[:100].replace("𒐪","") if not new_name and author.flairchanged: author.flairchanged += 86400