From 1754eeffe21200dc697639837797a748eca3d86b Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 19 Feb 2023 00:44:16 +0200 Subject: [PATCH] add a link to the post/comment in the grass ban reason --- files/routes/awards.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index 8c743b7f2..2e0b42dd2 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -245,7 +245,9 @@ def award_thing(v, thing_type, id): elif kind == "grass": link3 = f"/{thing_type}/{thing.id}" if thing_type == 'comment': - link3 += '#context' + link3 = f'{link3}' + else: + link3 = f'{link3}' author.is_banned = AUTOJANNY_ID author.ban_reason = f"grass award used by @{v.username} on {link3}"