diff options
Diffstat (limited to 'routers/web/user/profile.go')
-rw-r--r-- | routers/web/user/profile.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/web/user/profile.go b/routers/web/user/profile.go index 17c4783c69..72d36761da 100644 --- a/routers/web/user/profile.go +++ b/routers/web/user/profile.go @@ -131,7 +131,7 @@ func Profile(ctx *context.Context) { } // Show OpenID URIs - openIDs, err := models.GetUserOpenIDs(ctxUser.ID) + openIDs, err := user_model.GetUserOpenIDs(ctxUser.ID) if err != nil { ctx.ServerError("GetUserOpenIDs", err) return @@ -355,9 +355,9 @@ func Action(ctx *context.Context) { var err error switch ctx.Params(":action") { case "follow": - err = models.FollowUser(ctx.User.ID, u.ID) + err = user_model.FollowUser(ctx.User.ID, u.ID) case "unfollow": - err = models.UnfollowUser(ctx.User.ID, u.ID) + err = user_model.UnfollowUser(ctx.User.ID, u.ID) } if err != nil { |