From 2e64449de7e400e0dea257b4f2f1530b13f251fc Mon Sep 17 00:00:00 2001 From: Giteabot Date: Fri, 23 Jun 2023 07:04:15 -0400 Subject: [PATCH] Make "dismiss" content shown correctly (#25461) (#25465) Backport #25461 by @wxiaoguang Close #25127 ![image](https://github.com/go-gitea/gitea/assets/2114189/7d6be811-8e4a-4982-a5e4-857d171758d4) Co-authored-by: wxiaoguang --- models/issues/comment.go | 2 +- templates/repo/issue/view_content/comments.tmpl | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/models/issues/comment.go b/models/issues/comment.go index e5c90f265e1..dbe4434ca75 100644 --- a/models/issues/comment.go +++ b/models/issues/comment.go @@ -167,7 +167,7 @@ func AsCommentType(typeName string) CommentType { func (t CommentType) HasContentSupport() bool { switch t { - case CommentTypeComment, CommentTypeCode, CommentTypeReview: + case CommentTypeComment, CommentTypeCode, CommentTypeReview, CommentTypeDismissReview: return true } return false diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index 5fd46e9e687..0e3fccd1c60 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -767,7 +767,6 @@ {{svg "octicon-x" 16}} - {{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} {{template "shared/user/authorlink" .Poster}} {{$reviewerName := ""}}