aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/user/follower.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/user/follower.go')
-rw-r--r--routers/api/v1/user/follower.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/user/follower.go b/routers/api/v1/user/follower.go
index 39f3c20927..4d316425cd 100644
--- a/routers/api/v1/user/follower.go
+++ b/routers/api/v1/user/follower.go
@@ -18,7 +18,7 @@ import (
func responseAPIUsers(ctx *context.APIContext, users []*models.User) {
apiUsers := make([]*api.User, len(users))
for i := range users {
- apiUsers[i] = convert.ToUser(users[i], ctx.IsSigned, ctx.User != nil && ctx.User.IsAdmin)
+ apiUsers[i] = convert.ToUser(users[i], ctx.User)
}
ctx.JSON(http.StatusOK, &apiUsers)
}