aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/user/profile.go
diff options
context:
space:
mode:
authorJakobDev <jakobdev@gmx.de>2023-09-16 16:39:12 +0200
committerGitHub <noreply@github.com>2023-09-16 14:39:12 +0000
commitf91dbbba98c841f11d99be998ed5dd98122a457c (patch)
tree9c6c935ccf745c5a1716f1330922354809cd39e0 /routers/web/user/profile.go
parenta1b2a118123e0abd1d4737f4a6c0cf56d15eff57 (diff)
downloadgitea-f91dbbba98c841f11d99be998ed5dd98122a457c.tar.gz
gitea-f91dbbba98c841f11d99be998ed5dd98122a457c.zip
Next round of `db.DefaultContext` refactor (#27089)
Part of #27065
Diffstat (limited to 'routers/web/user/profile.go')
-rw-r--r--routers/web/user/profile.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/user/profile.go b/routers/web/user/profile.go
index 87505b94b1..71d10ab4c1 100644
--- a/routers/web/user/profile.go
+++ b/routers/web/user/profile.go
@@ -292,9 +292,9 @@ func Action(ctx *context.Context) {
var err error
switch ctx.FormString("action") {
case "follow":
- err = user_model.FollowUser(ctx.Doer.ID, ctx.ContextUser.ID)
+ err = user_model.FollowUser(ctx, ctx.Doer.ID, ctx.ContextUser.ID)
case "unfollow":
- err = user_model.UnfollowUser(ctx.Doer.ID, ctx.ContextUser.ID)
+ err = user_model.UnfollowUser(ctx, ctx.Doer.ID, ctx.ContextUser.ID)
}
if err != nil {