diff --git a/routers/repo/cloudbrain.go b/routers/repo/cloudbrain.go index 096694a46..34a5b7566 100755 --- a/routers/repo/cloudbrain.go +++ b/routers/repo/cloudbrain.go @@ -1038,11 +1038,12 @@ func getUID(ctx *context.Context) int64 { func GetAllImages(ctx *context.Context) { uid := getUID(ctx) opts := models.SearchImageOptions{ - UID: uid, - Keyword: ctx.Query("q"), - Topics: ctx.Query("topic"), - SearchOrderBy: "id desc", - Status: -1, + UID: uid, + Keyword: ctx.Query("q"), + Topics: ctx.Query("topic"), + IncludeOfficialOnly: ctx.QueryBool("recommend"), + SearchOrderBy: "id desc", + Status: -1, } if ctx.Query("private") != "" {