forked from MarseyWorld/MarseyWorld
consistency
parent
f0274a9f52
commit
91d618867e
|
@ -51,7 +51,7 @@ function transferBux(t, mobile=false) {
|
||||||
let amount = parseInt(document.getElementById(mobile ? "bux-transfer-amount-mobile" : "bux-transfer-amount").value);
|
let amount = parseInt(document.getElementById(mobile ? "bux-transfer-amount-mobile" : "bux-transfer-amount").value);
|
||||||
let username = document.getElementById('username').innerHTML
|
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,
|
"amount": document.getElementById(mobile ? "bux-transfer-amount-mobile" : "bux-transfer-amount").value,
|
||||||
"reason": document.getElementById(mobile ? "bux-transfer-reason-mobile" : "bux-transfer-reason").value
|
"reason": document.getElementById(mobile ? "bux-transfer-reason-mobile" : "bux-transfer-reason").value
|
||||||
|
|
|
@ -550,14 +550,14 @@ def get_coins(v, username):
|
||||||
def transfer_coins(v, username):
|
def transfer_coins(v, username):
|
||||||
return transfer_currency(v, username, 'coins', True)
|
return transfer_currency(v, username, 'coins', True)
|
||||||
|
|
||||||
@app.post("/@<username>/transfer_bux")
|
@app.post("/@<username>/transfer_marseybux")
|
||||||
@feature_required('MARSEYBUX')
|
@feature_required('MARSEYBUX')
|
||||||
@limiter.limit('1/second', scope=rpath)
|
@limiter.limit('1/second', scope=rpath)
|
||||||
@limiter.limit('1/second', scope=rpath, key_func=get_ID)
|
@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)
|
||||||
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
|
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
|
||||||
@auth_required
|
@auth_required
|
||||||
def transfer_bux(v, username):
|
def transfer_marseybux(v, username):
|
||||||
return transfer_currency(v, username, 'marseybux', False)
|
return transfer_currency(v, username, 'marseybux', False)
|
||||||
|
|
||||||
@app.get("/@<username>/css")
|
@app.get("/@<username>/css")
|
||||||
|
|
Loading…
Reference in New Issue