From e4c061858e73e7a8a1beb1f1ca78aac7ad68682c Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 26 Aug 2025 15:21:03 +0100 Subject: [PATCH] Add report received page --- app/blueprints/report/__init__.py | 7 ++++- app/templates/report/report_received.html | 33 +++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 app/templates/report/report_received.html diff --git a/app/blueprints/report/__init__.py b/app/blueprints/report/__init__.py index 29db02ce..bbaa6982 100644 --- a/app/blueprints/report/__init__.py +++ b/app/blueprints/report/__init__.py @@ -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(): diff --git a/app/templates/report/report_received.html b/app/templates/report/report_received.html new file mode 100644 index 00000000..da2b2f81 --- /dev/null +++ b/app/templates/report/report_received.html @@ -0,0 +1,33 @@ +{% extends "base.html" %} + +{% block title -%} + {{ _("We have received your report") }} +{%- endblock %} + + +{% block content %} + +

{{ self.title() }}

+ +

+ {{ _("We aim to resolve your report quickly.") }} +

+ +

+ {{ _("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.") }} +

+ +

+ {{ _("Due to limited resources, we may not contact you further about the report unless we need clarification.") }} +

+ +

+ {{ _("For future reference, use report id: %(report_id)s.", report_id=rid) }} +

+ +

+ {{ _("Back to home") }} +

+ +{% endblock %}