mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 02:38:35 +00:00
Return empty when searching issues with no repos (#26545)
This commit is contained in:
@@ -2503,6 +2503,10 @@ func SearchIssues(ctx *context.Context) {
|
||||
ctx.Error(http.StatusInternalServerError, "SearchRepositoryIDs", err.Error())
|
||||
return
|
||||
}
|
||||
if len(repoIDs) == 0 {
|
||||
// no repos found, don't let the indexer return all repos
|
||||
repoIDs = []int64{0}
|
||||
}
|
||||
}
|
||||
|
||||
keyword := ctx.FormTrim("q")
|
||||
|
Reference in New Issue
Block a user