From d607e57c927d6809183d5a54ae0028f4f8cefbb0 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 27 Dec 2022 06:24:25 +0200 Subject: [PATCH] fixes --- files/routes/admin.py | 1 + files/routes/awards.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index cb5887f198..8f4abcbac0 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -925,6 +925,7 @@ def shadowban(user_id, v): abort(403) user.shadowbanned = v.id reason = request.values.get("reason").strip()[:256] + reason = filter_emojis_only(reason) user.ban_reason = reason g.db.add(user) check_for_alts(user, False) diff --git a/files/routes/awards.py b/files/routes/awards.py index 94d9f6cea0..84ecb21035 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -166,7 +166,7 @@ def award_thing(v, thing_type, id): if thing.ghost and v.id != author.id: safe_username = "👻" - else + else: safe_username = f"@{author.username}" if SITE == 'rdrama.net' and author.id == PIZZASHILL_ID and v.id not in {AEVANN_ID, SNAKES_ID}: