From 35a7d2dc4cea6ec1ed0f5ffb977cb4f0e5d5d6be Mon Sep 17 00:00:00 2001 From: floss4good Date: Wed, 26 Mar 2025 22:48:05 +0200 Subject: [PATCH] Update URL routes for abusive content reporting. --- routers/web/web.go | 4 ++-- templates/org/header.tmpl | 2 +- templates/repo/header.tmpl | 2 +- templates/repo/issue/view_content/context_menu.tmpl | 2 +- templates/shared/user/profile_big_avatar.tmpl | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/routers/web/web.go b/routers/web/web.go index c36fad2c5a..8fbe1b0e39 100644 --- a/routers/web/web.go +++ b/routers/web/web.go @@ -476,8 +476,8 @@ func registerRoutes(m *web.Route) { }, reqSignIn) if setting.Moderation.Enabled { - m.Get("/-/abuse_reports/new", reqSignIn, moderation.NewReport) - m.Post("/-/abuse_reports/new", reqSignIn, web.Bind(forms.ReportAbuseForm{}), moderation.CreatePost) + m.Get("/report_abuse", reqSignIn, moderation.NewReport) + m.Post("/report_abuse", reqSignIn, web.Bind(forms.ReportAbuseForm{}), moderation.CreatePost) } m.Get("/pulls", reqSignIn, user.Pulls) diff --git a/templates/org/header.tmpl b/templates/org/header.tmpl index 2bc6613adc..4097e34b24 100644 --- a/templates/org/header.tmpl +++ b/templates/org/header.tmpl @@ -25,7 +25,7 @@ {{end}} diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 13c8fb8e67..b6cbfc7283 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -71,7 +71,7 @@ {{end}} diff --git a/templates/repo/issue/view_content/context_menu.tmpl b/templates/repo/issue/view_content/context_menu.tmpl index 07a8d83711..6f43f768b3 100644 --- a/templates/repo/issue/view_content/context_menu.tmpl +++ b/templates/repo/issue/view_content/context_menu.tmpl @@ -29,7 +29,7 @@ {{if .ctxData.Issue.IsPull}} {{$contentType = "pull"}} {{else}} {{$contentType = "issue"}} {{end}} {{end}}
- {{ctx.Locale.Tr "moderation.report_content"}} + {{ctx.Locale.Tr "moderation.report_content"}} {{end}} diff --git a/templates/shared/user/profile_big_avatar.tmpl b/templates/shared/user/profile_big_avatar.tmpl index 5776839c6c..725e310533 100644 --- a/templates/shared/user/profile_big_avatar.tmpl +++ b/templates/shared/user/profile_big_avatar.tmpl @@ -125,7 +125,7 @@ {{if .IsModerationEnabled}}
  • - {{ctx.Locale.Tr "moderation.report_abuse"}} + {{ctx.Locale.Tr "moderation.report_abuse"}}
  • {{end}} {{end}}