From b0c3075a794be3ccc768b5018f56ace6f12c11e1 Mon Sep 17 00:00:00 2001 From: Gusted Date: Sat, 19 Aug 2023 12:58:17 +0200 Subject: [PATCH] [GITEA] Add anchor to review types - The review type '22' is a general comment type that is attached to single codecomments, reviews with multiple comments or to simple approve and request changes comment. This comment can be used to create a link towards this action on an pull request. - Adds an anchor to the review comment type, so that when its getting linked to it, it actually jumps towards that event. - This also now fixes the behavior that after you created a review you will be redirected to that review and because this is an general comment type other mails will also be 'fixed' such as the approved or request changes. - Resolves https://codeberg.org/forgejo/forgejo/issues/1248 --- templates/repo/issue/view_content/comments.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index 57756e36b9..693ec4c8a3 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -378,7 +378,7 @@ {{end}} {{else if eq .Type 22}} -
+
{{if .OriginalAuthor}} {{else}}