From dccb0c15b996ac4dc0307cbfed140ce1558d7e3c Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 14 Aug 2016 04:17:26 -0700 Subject: Replace convert.To with APIFormat calls --- routers/api/v1/user/follower.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'routers/api/v1/user/follower.go') diff --git a/routers/api/v1/user/follower.go b/routers/api/v1/user/follower.go index 8d103c9e14..58a162444b 100644 --- a/routers/api/v1/user/follower.go +++ b/routers/api/v1/user/follower.go @@ -9,13 +9,12 @@ import ( "github.com/gogits/gogs/models" "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/routers/api/v1/convert" ) func responseApiUsers(ctx *context.APIContext, users []*models.User) { apiUsers := make([]*api.User, len(users)) for i := range users { - apiUsers[i] = convert.ToUser(users[i]) + apiUsers[i] = users[i].APIFormat() } ctx.JSON(200, &apiUsers) } -- cgit v1.2.3