when making a hole, redirect to it

master
Aevann 2023-10-04 15:20:55 +03:00
parent 4bc5a2783a
commit a44ffb8f4a
2 changed files with 2 additions and 2 deletions

View File

@ -390,7 +390,7 @@ def create_sub2(v):
for admin in admins:
send_repeatable_notification(admin, f":!marseyparty: /h/{sub} has been created by @{v.username} :marseyparty:")
return {"message": f"/h/{sub} created successfully!"}
return redirect(f"/h/{sub}")
@app.post("/kick/<int:pid>")
@limiter.limit('1/second', scope=rpath)

View File

@ -1,7 +1,7 @@
{% extends "default.html" %}
{% block pagetitle %}Create a {{HOLE_NAME}}{% endblock %}
{% block content %}
<form class="mt-3" id="submitform" action="/create_hole" method="post" data-nonce="{{g.nonce}}" data-onsubmit="sendFormXHR(this)">
<form class="mt-3" id="submitform" action="/create_hole" method="post" data-nonce="{{g.nonce}}">
<div class="container">
<div class="row justify-content-center mb-4 pb-6">
<div class="col col-md-6 p-3 py-md-0">