forked from rDrama/rDrama
1
0
Fork 0

make post #210983 immune to awards

master
Aevann 2023-10-11 16:50:15 +03:00
parent bd0edd4176
commit 75bfc65cc7
1 changed files with 3 additions and 0 deletions

View File

@ -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!")