mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 00:55:27 +00:00
Use HasAttachmentSupport method
This commit is contained in:
parent
33444a3308
commit
9ae805538a
|
@ -377,9 +377,7 @@ func (comments CommentList) loadDependentIssues(ctx context.Context) error {
|
|||
func (comments CommentList) getAttachmentCommentIDs() []int64 {
|
||||
ids := make(container.Set[int64], len(comments))
|
||||
for _, comment := range comments {
|
||||
if comment.Type == CommentTypeComment ||
|
||||
comment.Type == CommentTypeReview ||
|
||||
comment.Type == CommentTypeCode {
|
||||
if comment.Type.HasAttachmentSupport() {
|
||||
ids.Add(comment.ID)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue