aboutsummaryrefslogtreecommitdiffstats
path: root/models/issue_comment_list.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/issue_comment_list.go')
-rw-r--r--models/issue_comment_list.go17
1 files changed, 9 insertions, 8 deletions
diff --git a/models/issue_comment_list.go b/models/issue_comment_list.go
index 23a2756dcf..2107f4790f 100644
--- a/models/issue_comment_list.go
+++ b/models/issue_comment_list.go
@@ -10,6 +10,7 @@ import (
"code.gitea.io/gitea/models/db"
repo_model "code.gitea.io/gitea/models/repo"
user_model "code.gitea.io/gitea/models/user"
+ "code.gitea.io/gitea/modules/container"
)
// CommentList defines a list of comments
@@ -22,7 +23,7 @@ func (comments CommentList) getPosterIDs() []int64 {
posterIDs[comment.PosterID] = struct{}{}
}
}
- return keysInt64(posterIDs)
+ return container.KeysInt64(posterIDs)
}
func (comments CommentList) loadPosters(e db.Engine) error {
@@ -75,7 +76,7 @@ func (comments CommentList) getLabelIDs() []int64 {
ids[comment.LabelID] = struct{}{}
}
}
- return keysInt64(ids)
+ return container.KeysInt64(ids)
}
func (comments CommentList) loadLabels(e db.Engine) error {
@@ -125,7 +126,7 @@ func (comments CommentList) getMilestoneIDs() []int64 {
ids[comment.MilestoneID] = struct{}{}
}
}
- return keysInt64(ids)
+ return container.KeysInt64(ids)
}
func (comments CommentList) loadMilestones(e db.Engine) error {
@@ -168,7 +169,7 @@ func (comments CommentList) getOldMilestoneIDs() []int64 {
ids[comment.OldMilestoneID] = struct{}{}
}
}
- return keysInt64(ids)
+ return container.KeysInt64(ids)
}
func (comments CommentList) loadOldMilestones(e db.Engine) error {
@@ -211,7 +212,7 @@ func (comments CommentList) getAssigneeIDs() []int64 {
ids[comment.AssigneeID] = struct{}{}
}
}
- return keysInt64(ids)
+ return container.KeysInt64(ids)
}
func (comments CommentList) loadAssignees(e db.Engine) error {
@@ -267,7 +268,7 @@ func (comments CommentList) getIssueIDs() []int64 {
ids[comment.IssueID] = struct{}{}
}
}
- return keysInt64(ids)
+ return container.KeysInt64(ids)
}
// Issues returns all the issues of comments
@@ -342,7 +343,7 @@ func (comments CommentList) getDependentIssueIDs() []int64 {
ids[comment.DependentIssueID] = struct{}{}
}
}
- return keysInt64(ids)
+ return container.KeysInt64(ids)
}
func (comments CommentList) loadDependentIssues(ctx context.Context) error {
@@ -444,7 +445,7 @@ func (comments CommentList) getReviewIDs() []int64 {
ids[comment.ReviewID] = struct{}{}
}
}
- return keysInt64(ids)
+ return container.KeysInt64(ids)
}
func (comments CommentList) loadReviews(e db.Engine) error {