From 6aff678cd2e2d7c1e5806a73ff9e9810d408b948 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 20 Feb 2024 15:43:26 +0200 Subject: [PATCH] fix ban award --- files/routes/awards.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index efe7ae09e..1e9036d83 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -265,8 +265,8 @@ def award_thing(v, thing_type, id): ban_reason_link = f"/{thing_type}/{obj.id}" if isinstance(obj, Comment): ban_reason_link += '#context' - author.ban_reason = f'{award_title} award used by @{v.username} on {ban_reason_link}' - + ban_reason = f'{award_title} award used by @{v.username} on {ban_reason_link}' + author.ban_reason = ban_reason if kind == "ban": if not author.is_suspended: