summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-06-23 18:33:20 +0800
committerGitHub <noreply@github.com>2023-06-23 12:33:20 +0200
commit17965c8e79c979d873291036234beb6d834a45be (patch)
treed6ff7c7f7ef42584178ca2e2671fcff4dcc47e95
parent2e65c223dcb75824f7287bae35c3df69f23a22aa (diff)
downloadgitea-17965c8e79c979d873291036234beb6d834a45be.tar.gz
gitea-17965c8e79c979d873291036234beb6d834a45be.zip
Make "dismiss" content shown correctly (#25461)
Close #25127 ![image](https://github.com/go-gitea/gitea/assets/2114189/7d6be811-8e4a-4982-a5e4-857d171758d4) Co-authored-by: Giteabot <teabot@gitea.io>
-rw-r--r--models/issues/comment.go2
-rw-r--r--templates/repo/issue/view_content/comments.tmpl1
2 files changed, 1 insertions, 2 deletions
diff --git a/models/issues/comment.go b/models/issues/comment.go
index e5c90f265e..dbe4434ca7 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 9097a180e3..5f1f506b27 100644
--- a/templates/repo/issue/view_content/comments.tmpl
+++ b/templates/repo/issue/view_content/comments.tmpl
@@ -767,7 +767,6 @@
<img src="{{.Poster.AvatarLink $.Context}}" width="40" height="40">
</a>
<span class="badge grey">{{svg "octicon-x" 16}}</span>
- {{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}}
<span class="text grey muted-links">
{{template "shared/user/authorlink" .Poster}}
{{$reviewerName := ""}}