mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Make "dismiss" content shown correctly (#25461)
Close #25127  Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
		@@ -167,7 +167,7 @@ func AsCommentType(typeName string) CommentType {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
func (t CommentType) HasContentSupport() bool {
 | 
					func (t CommentType) HasContentSupport() bool {
 | 
				
			||||||
	switch t {
 | 
						switch t {
 | 
				
			||||||
	case CommentTypeComment, CommentTypeCode, CommentTypeReview:
 | 
						case CommentTypeComment, CommentTypeCode, CommentTypeReview, CommentTypeDismissReview:
 | 
				
			||||||
		return true
 | 
							return true
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return false
 | 
						return false
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -767,7 +767,6 @@
 | 
				
			|||||||
						<img src="{{.Poster.AvatarLink $.Context}}" width="40" height="40">
 | 
											<img src="{{.Poster.AvatarLink $.Context}}" width="40" height="40">
 | 
				
			||||||
					</a>
 | 
										</a>
 | 
				
			||||||
					<span class="badge grey">{{svg "octicon-x" 16}}</span>
 | 
										<span class="badge grey">{{svg "octicon-x" 16}}</span>
 | 
				
			||||||
					{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}}
 | 
					 | 
				
			||||||
					<span class="text grey muted-links">
 | 
										<span class="text grey muted-links">
 | 
				
			||||||
						{{template "shared/user/authorlink" .Poster}}
 | 
											{{template "shared/user/authorlink" .Poster}}
 | 
				
			||||||
						{{$reviewerName := ""}}
 | 
											{{$reviewerName := ""}}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user