@@ -10,6 +10,7 @@ import (
1010 "code.gitea.io/gitea/models/db"
1111 repo_model "code.gitea.io/gitea/models/repo"
1212 user_model "code.gitea.io/gitea/models/user"
13+ "code.gitea.io/gitea/modules/container"
1314)
1415
1516// CommentList defines a list of comments
@@ -22,7 +23,7 @@ func (comments CommentList) getPosterIDs() []int64 {
2223 posterIDs [comment .PosterID ] = struct {}{}
2324 }
2425 }
25- return keysInt64 (posterIDs )
26+ return container . KeysInt64 (posterIDs )
2627}
2728
2829func (comments CommentList ) loadPosters (e db.Engine ) error {
@@ -75,7 +76,7 @@ func (comments CommentList) getLabelIDs() []int64 {
7576 ids [comment .LabelID ] = struct {}{}
7677 }
7778 }
78- return keysInt64 (ids )
79+ return container . KeysInt64 (ids )
7980}
8081
8182func (comments CommentList ) loadLabels (e db.Engine ) error {
@@ -125,7 +126,7 @@ func (comments CommentList) getMilestoneIDs() []int64 {
125126 ids [comment .MilestoneID ] = struct {}{}
126127 }
127128 }
128- return keysInt64 (ids )
129+ return container . KeysInt64 (ids )
129130}
130131
131132func (comments CommentList ) loadMilestones (e db.Engine ) error {
@@ -168,7 +169,7 @@ func (comments CommentList) getOldMilestoneIDs() []int64 {
168169 ids [comment .OldMilestoneID ] = struct {}{}
169170 }
170171 }
171- return keysInt64 (ids )
172+ return container . KeysInt64 (ids )
172173}
173174
174175func (comments CommentList ) loadOldMilestones (e db.Engine ) error {
@@ -211,7 +212,7 @@ func (comments CommentList) getAssigneeIDs() []int64 {
211212 ids [comment .AssigneeID ] = struct {}{}
212213 }
213214 }
214- return keysInt64 (ids )
215+ return container . KeysInt64 (ids )
215216}
216217
217218func (comments CommentList ) loadAssignees (e db.Engine ) error {
@@ -267,7 +268,7 @@ func (comments CommentList) getIssueIDs() []int64 {
267268 ids [comment .IssueID ] = struct {}{}
268269 }
269270 }
270- return keysInt64 (ids )
271+ return container . KeysInt64 (ids )
271272}
272273
273274// Issues returns all the issues of comments
@@ -342,7 +343,7 @@ func (comments CommentList) getDependentIssueIDs() []int64 {
342343 ids [comment .DependentIssueID ] = struct {}{}
343344 }
344345 }
345- return keysInt64 (ids )
346+ return container . KeysInt64 (ids )
346347}
347348
348349func (comments CommentList ) loadDependentIssues (ctx context.Context ) error {
@@ -444,7 +445,7 @@ func (comments CommentList) getReviewIDs() []int64 {
444445 ids [comment .ReviewID ] = struct {}{}
445446 }
446447 }
447- return keysInt64 (ids )
448+ return container . KeysInt64 (ids )
448449}
449450
450451func (comments CommentList ) loadReviews (e db.Engine ) error {
0 commit comments