From 752c974c72a7791ac80e4252058efb2e653b0976 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 14 Apr 2022 19:31:45 +0200 Subject: [PATCH] fsd --- files/routes/awards.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index 1d69ab695..84ce7cc3b 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -152,8 +152,8 @@ def award_post(pid, v): author = post.author - if author.id == PIZZASHILL_ID: - return {"error": "Pizzashill is immune to awards."}, 403 + if author.id in (PIZZASHILL_ID, DAD_ID): + return {"error": "This user is immune to awards."}, 403 if kind == "benefactor" and author.id == v.id: return {"error": "You can't use this award on yourself."}, 400 @@ -391,8 +391,8 @@ def award_comment(cid, v): author = c.author - if author.id == PIZZASHILL_ID: - return {"error": "Pizzashill is immune to awards."}, 403 + if author.id in (PIZZASHILL_ID, DAD_ID): + return {"error": "This user is immune to awards."}, 403 if v.id != author.id: if author.deflector and AWARDS[kind]['price'] > 300 and kind not in ('pin','unpin','benefactor'):