@@ -10,6 +10,7 @@ import (
10
10
"code.gitea.io/gitea/models/db"
11
11
repo_model "code.gitea.io/gitea/models/repo"
12
12
user_model "code.gitea.io/gitea/models/user"
13
+ "code.gitea.io/gitea/modules/container"
13
14
)
14
15
15
16
// CommentList defines a list of comments
@@ -22,7 +23,7 @@ func (comments CommentList) getPosterIDs() []int64 {
22
23
posterIDs [comment .PosterID ] = struct {}{}
23
24
}
24
25
}
25
- return keysInt64 (posterIDs )
26
+ return container . KeysInt64 (posterIDs )
26
27
}
27
28
28
29
func (comments CommentList ) loadPosters (e db.Engine ) error {
@@ -75,7 +76,7 @@ func (comments CommentList) getLabelIDs() []int64 {
75
76
ids [comment .LabelID ] = struct {}{}
76
77
}
77
78
}
78
- return keysInt64 (ids )
79
+ return container . KeysInt64 (ids )
79
80
}
80
81
81
82
func (comments CommentList ) loadLabels (e db.Engine ) error {
@@ -125,7 +126,7 @@ func (comments CommentList) getMilestoneIDs() []int64 {
125
126
ids [comment .MilestoneID ] = struct {}{}
126
127
}
127
128
}
128
- return keysInt64 (ids )
129
+ return container . KeysInt64 (ids )
129
130
}
130
131
131
132
func (comments CommentList ) loadMilestones (e db.Engine ) error {
@@ -168,7 +169,7 @@ func (comments CommentList) getOldMilestoneIDs() []int64 {
168
169
ids [comment .OldMilestoneID ] = struct {}{}
169
170
}
170
171
}
171
- return keysInt64 (ids )
172
+ return container . KeysInt64 (ids )
172
173
}
173
174
174
175
func (comments CommentList ) loadOldMilestones (e db.Engine ) error {
@@ -211,7 +212,7 @@ func (comments CommentList) getAssigneeIDs() []int64 {
211
212
ids [comment .AssigneeID ] = struct {}{}
212
213
}
213
214
}
214
- return keysInt64 (ids )
215
+ return container . KeysInt64 (ids )
215
216
}
216
217
217
218
func (comments CommentList ) loadAssignees (e db.Engine ) error {
@@ -267,7 +268,7 @@ func (comments CommentList) getIssueIDs() []int64 {
267
268
ids [comment .IssueID ] = struct {}{}
268
269
}
269
270
}
270
- return keysInt64 (ids )
271
+ return container . KeysInt64 (ids )
271
272
}
272
273
273
274
// Issues returns all the issues of comments
@@ -342,7 +343,7 @@ func (comments CommentList) getDependentIssueIDs() []int64 {
342
343
ids [comment .DependentIssueID ] = struct {}{}
343
344
}
344
345
}
345
- return keysInt64 (ids )
346
+ return container . KeysInt64 (ids )
346
347
}
347
348
348
349
func (comments CommentList ) loadDependentIssues (ctx context.Context ) error {
@@ -444,7 +445,7 @@ func (comments CommentList) getReviewIDs() []int64 {
444
445
ids [comment .ReviewID ] = struct {}{}
445
446
}
446
447
}
447
- return keysInt64 (ids )
448
+ return container . KeysInt64 (ids )
448
449
}
449
450
450
451
func (comments CommentList ) loadReviews (e db.Engine ) error {
0 commit comments