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