consistency

master
Aevann 2024-11-09 14:49:46 +02:00
parent f0274a9f52
commit 91d618867e
2 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ function transferBux(t, mobile=false) {
let amount = parseInt(document.getElementById(mobile ? "bux-transfer-amount-mobile" : "bux-transfer-amount").value);
let username = document.getElementById('username').innerHTML
postToast(t, `/@${username}/transfer_bux`,
postToast(t, `/@${username}/transfer_marseybux`,
{
"amount": document.getElementById(mobile ? "bux-transfer-amount-mobile" : "bux-transfer-amount").value,
"reason": document.getElementById(mobile ? "bux-transfer-reason-mobile" : "bux-transfer-reason").value

View File

@ -550,14 +550,14 @@ def get_coins(v, username):
def transfer_coins(v, username):
return transfer_currency(v, username, 'coins', True)
@app.post("/@<username>/transfer_bux")
@app.post("/@<username>/transfer_marseybux")
@feature_required('MARSEYBUX')
@limiter.limit('1/second', scope=rpath)
@limiter.limit('1/second', scope=rpath, key_func=get_ID)
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400)
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
@auth_required
def transfer_bux(v, username):
def transfer_marseybux(v, username):
return transfer_currency(v, username, 'marseybux', False)
@app.get("/@<username>/css")