mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-04-08 02:31:36 +02:00
Redirect user to their home page
Redirect the user to their home page when they report an issue that is already reported.
This commit is contained in:
parent
a7a9ed1c04
commit
d2c82e55aa
1 changed files with 2 additions and 1 deletions
|
@ -56,7 +56,8 @@ func NewReport(ctx *context.Context) {
|
|||
|
||||
if moderation.AlreadyReported(ctx, contentType, contentID) {
|
||||
setMinimalContextData(ctx)
|
||||
ctx.RenderWithErr(ctx.Tr("moderation.reported_already"), tplSubmitAbuseReport, nil)
|
||||
ctx.Flash.Error(ctx.Tr("moderation.reported_already"))
|
||||
ctx.Redirect(ctx.Doer.DashboardLink())
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue