Revert "make it possible to message someone by id"

This reverts commit 718951f6a6.
master
Aevann 2023-07-11 17:31:07 +03:00
parent 8a82e7ebd7
commit fd17dab06c
1 changed files with 3 additions and 3 deletions

View File

@ -732,11 +732,11 @@ def is_available(name:str):
else:
return {name: True}
@app.route("/id/<int:id>/<path:path>")
@app.get("/id/<int:id>")
@limiter.limit(DEFAULT_RATELIMIT)
def user_id(id, path):
def user_id(id):
user = get_account(id)
return redirect(f'/@{user.username}/{path}')
return redirect(user.url)
@app.get("/u/<username>")
@limiter.limit(DEFAULT_RATELIMIT)