|
|
@@ -798,11 +798,12 @@ func CloudBrainShowModels(ctx *context.Context) { |
|
|
|
func GetPublicImages(ctx *context.Context) { |
|
|
|
|
|
|
|
opts := models.SearchImageOptions{ |
|
|
|
IncludePrivateOnly: true, |
|
|
|
UID: -1, |
|
|
|
Keyword: ctx.Query("q"), |
|
|
|
Topics: ctx.Query("topic"), |
|
|
|
SearchOrderBy: "type desc, num_stars desc", |
|
|
|
IncludePrivateOnly: true, |
|
|
|
UID: -1, |
|
|
|
Keyword: ctx.Query("q"), |
|
|
|
Topics: ctx.Query("topic"), |
|
|
|
IncludeOfficialOnly: ctx.QueryBool("recommend"), |
|
|
|
SearchOrderBy: "type desc, num_stars desc", |
|
|
|
} |
|
|
|
|
|
|
|
getImages(ctx, &opts) |
|
|
|