forked from rDrama/rDrama
1
0
Fork 0

fix last commit

master
Aevann1 2022-12-21 18:17:09 +02:00
parent 7296b389c0
commit 1dab4f7804
2 changed files with 1 additions and 2 deletions

View File

@ -1478,7 +1478,7 @@ def ban_domain(v):
return redirect("/admin/banned_domains/")
@app.post("/admin/unban_domain/<domain>")
@app.post("/admin/unban_domain/<path:domain>")
@limiter.limit(DEFAULT_RATELIMIT_SLOWER)
@admin_level_required(PERMS['DOMAINS_BAN'])
def unban_domain(v:User, domain):

View File

@ -5,7 +5,6 @@
<script>
function unbanDomain(t, domain) {
domain = encodeURIComponent(domain);
postToastSwitch(t,'/admin/unban_domain/' + domain);
t.parentElement.parentElement.remove();
}