1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-03-12 04:58:21 +03:00

Add some comments

This commit is contained in:
Lunny Xiao 2024-12-29 17:06:16 -08:00
parent 6d02f5890f
commit 17d8a24801
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -206,6 +206,8 @@ func (t CommentType) CountedAsConversation() bool {
return false
}
// ConversationCountedCommentType returns the comment types that are counted as a conversation
// The returned types are []any rather than []CommentType to allow for easy use as xorm args
func ConversationCountedCommentType() []any {
return []any{CommentTypeComment, CommentTypeReview}
}