prevent DDOS

master
Aevann1 2022-12-21 22:14:33 +02:00
parent 391363fb37
commit 98b427e3a2
1 changed files with 2 additions and 0 deletions

View File

@ -208,6 +208,8 @@ def chuds(v:User):
return render_template("chuds.html", v=v, users=users)
def all_upvoters_downvoters(v:User, username:str, vote_dir:int, is_who_simps_hates:bool):
if username == 'Snappy':
abort(403, "For performance reasons, you can't see Snappy statistics!")
vote_str = 'votes'
simps_haters = 'voters'
vote_name = 'Neutral'