Add report received page

This commit is contained in:
rubenwardy
2025-08-26 15:21:03 +01:00
parent 0653ed2183
commit e4c061858e
2 changed files with 39 additions and 1 deletions

View File

@@ -75,11 +75,16 @@ def report():
msg = f"**New Report**\nReport on `{report.url}`\n\n{report.title}\n\nView: {abs_url}"
post_discord_webhook.delay(None if is_anon else current_user.username, msg, True)
return redirect(url_for("report.view", rid=report.id))
return redirect(url_for("report.report_received", rid=report.id))
return render_template("report/report.html", form=form, url=url, is_anon=is_anon, noindex=url is not None)
@bp.route("/report/received/")
def report_received():
return render_template("report/report_received.html", rid=request.args.get("rid"))
@bp.route("/admin/reports/")
@rank_required(UserRank.MODERATOR)
def list_all():

View File

@@ -0,0 +1,33 @@
{% extends "base.html" %}
{% block title -%}
{{ _("We have received your report") }}
{%- endblock %}
{% block content %}
<h1>{{ self.title() }}</h1>
<p>
{{ _("We aim to resolve your report quickly.") }}
</p>
<p>
{{ _("If the report is about illegal or harmful content, we aim to resolve within 48 hours.") }}
{{ _("If we find the content to be infringing, we will remove it and may warn or suspend the user.") }}
</p>
<p>
{{ _("Due to limited resources, we may not contact you further about the report unless we need clarification.") }}
</p>
<p>
{{ _("For future reference, use report id: %(report_id)s.", report_id=rid) }}
</p>
<p>
<a class="btn bg-primary btn-large" href="{{ url_for('homepage.home') }}">{{ _("Back to home") }}</a>
</p>
{% endblock %}