mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-08 18:04:14 +01:00
Use HasAttachmentSupport method
This commit is contained in:
parent
33444a3308
commit
9ae805538a
1 changed files with 1 additions and 3 deletions
|
@ -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