diff --git a/app/blueprints/report/__init__.py b/app/blueprints/report/__init__.py index 673eec3b..e910be7d 100644 --- a/app/blueprints/report/__init__.py +++ b/app/blueprints/report/__init__.py @@ -141,11 +141,11 @@ def view(rid: str): db.session.commit() else: if "completed" in request.form: - outcome = "completed" + outcome = "as completed" elif "removed" in request.form: - outcome = "content removed" + outcome = "as content removed" elif "invalid" in request.form: - outcome = "invalid" + outcome = "without action" if report.thread: flash("Make sure to comment why the report is invalid in the thread", "warning") else: @@ -153,10 +153,10 @@ def view(rid: str): report.is_resolved = True url = url_for("report.view", rid=report.id) - add_audit_log(AuditSeverity.MODERATION, current_user, f"Resolved report as {outcome} \"{report.title}\"", url) + add_audit_log(AuditSeverity.MODERATION, current_user, f"Report closed {outcome} \"{report.title}\"", url) if report.thread: - add_replies(report.thread, current_user, f"Report closed as {outcome}", is_status_update=True) + add_replies(report.thread, current_user, f"Closed report {outcome}", is_status_update=True) db.session.commit() diff --git a/app/templates/report/view.html b/app/templates/report/view.html index b9b7f3ba..f3e3eb76 100644 --- a/app/templates/report/view.html +++ b/app/templates/report/view.html @@ -91,13 +91,13 @@

{% if report.is_resolved %}Reopen report{% else %}Close report{% endif %}

- + {% if report.is_resolved %} {% else %} - + - + {% endif %}