Browse Source

Merge branch 'fix-323' of https://git.openi.org.cn/OpenI/aiforge into fix-323

tags/v1.22.4.1^2
zhoupzh 3 years ago
parent
commit
4d98d3a469
1 changed files with 6 additions and 5 deletions
  1. +6
    -5
      routers/repo/cloudbrain.go

+ 6
- 5
routers/repo/cloudbrain.go View File

@@ -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") != "" {


Loading…
Cancel
Save