Skip to content

Commit

Permalink
Fix issue with anonymous reports
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed Jul 23, 2024
1 parent 4c4a558 commit a9d3159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/blueprints/report/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def report():
url = abs_url_samesite(url)

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", "")

if form and form.validate_on_submit():
Expand Down

0 comments on commit a9d3159

Please sign in to comment.