Skip to content

Commit b4eea72

Browse files
committed
Fix GetUserByParams
1 parent aecbb0d commit b4eea72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/user/key.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func GetUserByParamsName(ctx *context.APIContext, name string) *models.User {
5959

6060
// GetUserByParams returns user whose name is presented in URL paramenter.
6161
func GetUserByParams(ctx *context.APIContext) *models.User {
62-
return GetUserByParamsName(ctx, ":username")
62+
return GetUserByParamsName(ctx, ctx.Params(":username"))
6363
}
6464

6565
func composePublicKeysAPILink() string {

0 commit comments

Comments
 (0)