forked from rDrama/rDrama
Pointless bullshit checks for people who like to use mitmproxy a bit too much (#134)
Does it do anything meaningful? No Does it do anything harmful? No Did I test it? uhhhhhm Co-authored-by: Perjury <perjury@sabotaged.email> Reviewed-on: rDrama/rDrama#134 Co-authored-by: Perjury <perjury@noreply.fsdfsd.net> Co-committed-by: Perjury <perjury@noreply.fsdfsd.net>master
parent
2c279a8369
commit
20bbc9ff24
|
@ -15,6 +15,9 @@ from files.__main__ import app, limiter
|
|||
@limiter.limit(DEFAULT_RATELIMIT, key_func=get_ID)
|
||||
@auth_required
|
||||
def verify_email(v):
|
||||
if v.is_activated:
|
||||
abort(400, "Email already verified!")
|
||||
|
||||
send_verification_email(v)
|
||||
return {"message": "Email has been sent. Check your spam folder if you can't find it!"}
|
||||
|
||||
|
|
|
@ -1138,6 +1138,9 @@ def unfollow_user(username, v):
|
|||
if not v.shadowbanned:
|
||||
send_notification(target.id, f"@{v.username} has unfollowed you!")
|
||||
|
||||
else:
|
||||
abort(400, f"You're not even following {target.username} to begin with!")
|
||||
|
||||
|
||||
return {"message": f"@{target.username} has been unfollowed!"}
|
||||
|
||||
|
|
Loading…
Reference in New Issue