forked from MarseyWorld/MarseyWorld
when making a hole, redirect to it
parent
4bc5a2783a
commit
a44ffb8f4a
|
@ -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)
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue