This commit is contained in:
Aevann1 2021-07-24 22:50:00 +02:00
parent e1fb78448e
commit aee3102e76

View file

@ -22,7 +22,7 @@ beams_client = PushNotifications(
@app.post("/@<username>/suicide") @app.post("/@<username>/suicide")
@auth_required @auth_required
def suicide(v, username): def suicide(v, username):
t = int(time()) t = int(time)
if t - v.suicide_utc < 86400: abort(403) if t - v.suicide_utc < 86400: abort(403)
user = get_user(username) user = get_user(username)
suicide = f"""Hi there, suicide = f"""Hi there,