forked from rDrama/rDrama
fix last commit
parent
7296b389c0
commit
1dab4f7804
|
@ -1478,7 +1478,7 @@ def ban_domain(v):
|
||||||
return redirect("/admin/banned_domains/")
|
return redirect("/admin/banned_domains/")
|
||||||
|
|
||||||
|
|
||||||
@app.post("/admin/unban_domain/<domain>")
|
@app.post("/admin/unban_domain/<path:domain>")
|
||||||
@limiter.limit(DEFAULT_RATELIMIT_SLOWER)
|
@limiter.limit(DEFAULT_RATELIMIT_SLOWER)
|
||||||
@admin_level_required(PERMS['DOMAINS_BAN'])
|
@admin_level_required(PERMS['DOMAINS_BAN'])
|
||||||
def unban_domain(v:User, domain):
|
def unban_domain(v:User, domain):
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function unbanDomain(t, domain) {
|
function unbanDomain(t, domain) {
|
||||||
domain = encodeURIComponent(domain);
|
|
||||||
postToastSwitch(t,'/admin/unban_domain/' + domain);
|
postToastSwitch(t,'/admin/unban_domain/' + domain);
|
||||||
t.parentElement.parentElement.remove();
|
t.parentElement.parentElement.remove();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue