aboutsummaryrefslogtreecommitdiff
path: root/internal/route/user/profile.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/route/user/profile.go')
-rw-r--r--internal/route/user/profile.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/route/user/profile.go b/internal/route/user/profile.go
index 1fb2df73..799868ca 100644
--- a/internal/route/user/profile.go
+++ b/internal/route/user/profile.go
@@ -120,9 +120,9 @@ func Action(c *context.Context, puser *context.ParamsUser) {
var err error
switch c.Params(":action") {
case "follow":
- err = db.Follows.Follow(c.Req.Context(), c.UserID(), puser.ID)
+ err = db.Users.Follow(c.Req.Context(), c.UserID(), puser.ID)
case "unfollow":
- err = db.Follows.Unfollow(c.Req.Context(), c.UserID(), puser.ID)
+ err = db.Users.Unfollow(c.Req.Context(), c.UserID(), puser.ID)
}
if err != nil {