Skip to content

Commit 17965c8

Browse files
wxiaoguangGiteaBot
andauthoredJun 23, 2023
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>
1 parent 2e65c22 commit 17965c8

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed
 

‎models/issues/comment.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func AsCommentType(typeName string) CommentType {
167167

168168
func (t CommentType) HasContentSupport() bool {
169169
switch t {
170-
case CommentTypeComment, CommentTypeCode, CommentTypeReview:
170+
case CommentTypeComment, CommentTypeCode, CommentTypeReview, CommentTypeDismissReview:
171171
return true
172172
}
173173
return false

‎templates/repo/issue/view_content/comments.tmpl

-1
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,6 @@
767767
<img src="{{.Poster.AvatarLink $.Context}}" width="40" height="40">
768768
</a>
769769
<span class="badge grey">{{svg "octicon-x" 16}}</span>
770-
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}}
771770
<span class="text grey muted-links">
772771
{{template "shared/user/authorlink" .Poster}}
773772
{{$reviewerName := ""}}

0 commit comments

Comments
 (0)