* fix no items under /org/$org/{issues,pulls}?type=mentioned
it was filtering by org id, but org-mentions are not persisted like that
to the DB, we need to filter by UID.
This means, selecting different teams will only have an effect on the
selected repos, otherwise results will be the same, which may be
suboptimal.
fixes #14941
* don't spam a warning for a perfectly fine request
case models.FilterModeCreate:
opts.PosterID = ctx.User.ID
case models.FilterModeMention:
- opts.MentionedID = ctxUser.ID
+ opts.MentionedID = ctx.User.ID
case models.FilterModeReviewRequested:
- opts.ReviewRequestedID = ctxUser.ID
+ opts.ReviewRequestedID = ctx.User.ID
}
if ctxUser.IsOrganization() {
}
func getRepoIDs(reposQuery string) []int64 {
- if len(reposQuery) == 0 {
+ if len(reposQuery) == 0 || reposQuery == "[]" {
return []int64{}
}
if !issueReposQueryPattern.MatchString(reposQuery) {