|
|
@@ -978,6 +978,7 @@ func GetPublicImages(ctx *context.Context) { |
|
|
|
Topics: ctx.Query("topic"), |
|
|
|
IncludeOfficialOnly: ctx.QueryBool("recommend"), |
|
|
|
SearchOrderBy: "type desc, num_stars desc,id desc", |
|
|
|
Status: models.IMAGE_STATUS_SUCCESS, |
|
|
|
} |
|
|
|
|
|
|
|
getImages(ctx, &opts) |
|
|
@@ -991,6 +992,7 @@ func GetCustomImages(ctx *context.Context) { |
|
|
|
IncludeOwnerOnly: true, |
|
|
|
Keyword: ctx.Query("q"), |
|
|
|
Topics: ctx.Query("topic"), |
|
|
|
Status: -1, |
|
|
|
SearchOrderBy: "id desc", |
|
|
|
} |
|
|
|
getImages(ctx, &opts) |
|
|
@@ -1004,6 +1006,7 @@ func GetStarImages(ctx *context.Context) { |
|
|
|
IncludeStarByMe: true, |
|
|
|
Keyword: ctx.Query("q"), |
|
|
|
Topics: ctx.Query("topic"), |
|
|
|
Status: models.IMAGE_STATUS_SUCCESS, |
|
|
|
SearchOrderBy: "id desc", |
|
|
|
} |
|
|
|
getImages(ctx, &opts) |
|
|
@@ -1025,6 +1028,7 @@ func GetAllImages(ctx *context.Context) { |
|
|
|
Keyword: ctx.Query("q"), |
|
|
|
Topics: ctx.Query("topic"), |
|
|
|
SearchOrderBy: "id desc", |
|
|
|
Status: -1, |
|
|
|
} |
|
|
|
|
|
|
|
if ctx.Query("private") != "" { |
|
|
|