From 647d8fdd2a8045ec6a262e385e98fa18c7ff22e5 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 13 Dec 2022 18:54:11 +0200 Subject: [PATCH] minor fix for bug --- files/routes/reporting.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/reporting.py b/files/routes/reporting.py index d27aeb7d62..84a919d742 100644 --- a/files/routes/reporting.py +++ b/files/routes/reporting.py @@ -22,6 +22,7 @@ def flag_post(pid, v): execute_blackjack(v, post, reason, 'flag') if v.is_muted: abort(403, "You are forbidden from making reports.") reason = reason[:100] + og_flair = reason[1:] reason = filter_emojis_only(reason) if len(reason) > 350: abort(400, "Too long.") @@ -49,7 +50,7 @@ def flag_post(pid, v): position = f'/h/{post.sub} Mod' if v.id != post.author_id: - message = f'@{v.username} ({position}) has flaired [{post.title}]({post.shortlink}) with the flair: `"{post.flair}"`' + message = f'@{v.username} ({position}) has flaired [{post.title}]({post.shortlink}) with the flair: `"{og_flair}"`' send_repeatable_notification(post.author_id, message) return {"message": "Post flaired successfully!"}