From 75bfc65cc7d112c80507915333dda260eaa99048 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 11 Oct 2023 16:50:15 +0300 Subject: [PATCH] make post #210983 immune to awards --- files/routes/awards.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/routes/awards.py b/files/routes/awards.py index b82d7bd51f..a3d8777aa1 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -185,6 +185,9 @@ def award_thing(v, thing_type, id): if not AWARDS[kind]['positive'] and author.immune_to_negative_awards(v): abort(403, f"{safe_username} immune to negative awards!") + if thing_type == 'post' and thing.id == 210983: + abort(403, "You can't award this post!") + if kind == "benefactor" and author.id == v.id: abort(403, "You can't use this award on yourself!")