diff options
Diffstat (limited to 'routers/api/v1/user/user.go')
-rw-r--r-- | routers/api/v1/user/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/user/user.go b/routers/api/v1/user/user.go index de1fd5a5c5..db950bd1ee 100644 --- a/routers/api/v1/user/user.go +++ b/routers/api/v1/user/user.go @@ -58,7 +58,7 @@ func Search(ctx *context.APIContext) { opts := &models.SearchUserOptions{ Actor: ctx.User, - Keyword: strings.Trim(ctx.Form("q"), " "), + Keyword: strings.Trim(ctx.FormString("q"), " "), UID: ctx.FormInt64("uid"), Type: models.UserTypeIndividual, ListOptions: listOptions, |