diff options
Diffstat (limited to 'internal/context/user.go')
-rw-r--r-- | internal/context/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/context/user.go b/internal/context/user.go index 0d6ad67d..2b2773f5 100644 --- a/internal/context/user.go +++ b/internal/context/user.go @@ -19,7 +19,7 @@ type ParamsUser struct { // and injects it as *ParamsUser. func InjectParamsUser() macaron.Handler { return func(c *Context) { - user, err := db.GetUserByName(c.Params(":username")) + user, err := db.Users.GetByUsername(c.Req.Context(), c.Params(":username")) if err != nil { c.NotFoundOrError(err, "get user by name") return |