remotes/1693045480750635534/spooky-22
Aevann1 2022-04-14 19:31:45 +02:00
parent a158c2b4ea
commit 752c974c72
1 changed files with 4 additions and 4 deletions

View File

@ -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'):