mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-08 08:33:45 +01:00
Fix issue with anonymous reports
This commit is contained in:
parent
4c4a55872a
commit
a9d31590e8
@ -47,7 +47,7 @@ def report():
|
|||||||
url = abs_url_samesite(url)
|
url = abs_url_samesite(url)
|
||||||
|
|
||||||
form = ReportForm(formdata=request.form) if current_user.is_authenticated else None
|
form = ReportForm(formdata=request.form) if current_user.is_authenticated else None
|
||||||
if request.method == "GET":
|
if form and request.method == "GET":
|
||||||
form.message.data = request.args.get("message", "")
|
form.message.data = request.args.get("message", "")
|
||||||
|
|
||||||
if form and form.validate_on_submit():
|
if form and form.validate_on_submit():
|
||||||
|
Loading…
Reference in New Issue
Block a user