remotes/1693045480750635534/spooky-22
Aevann1 2021-07-25 20:01:43 +02:00
parent c500667011
commit f88061d8b0
1 changed files with 3 additions and 10 deletions

View File

@ -183,17 +183,10 @@ def api_is_available(name, v):
return jsonify({name: True})
@app.route("/uid/<uid>", methods=["GET"])
def user_uid(uid):
@app.route("/id/<id>", methods=["GET"])
def user_id(id):
user = get_account(uid)
return redirect(user.permalink)
@app.route("/id/<uid>", methods=["GET"])
def user_uid2(uid):
user = get_account(int(uid))
user = get_account(int(id))
return redirect(user.permalink)
# Allow Id of user to be queryied, and then redirect the bot to the