aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/webfinger.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/webfinger.go')
-rw-r--r--routers/web/webfinger.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/webfinger.go b/routers/web/webfinger.go
index 27d0351b81..8402967867 100644
--- a/routers/web/webfinger.go
+++ b/routers/web/webfinger.go
@@ -59,7 +59,7 @@ func WebfingerQuery(ctx *context.Context) {
return
}
- u, err = user_model.GetUserByNameCtx(ctx, parts[0])
+ u, err = user_model.GetUserByName(ctx, parts[0])
case "mailto":
u, err = user_model.GetUserByEmailContext(ctx, resource.Opaque)
if u != nil && u.KeepEmailPrivate {
@@ -79,7 +79,7 @@ func WebfingerQuery(ctx *context.Context) {
return
}
- if !user_model.IsUserVisibleToViewer(u, ctx.Doer) {
+ if !user_model.IsUserVisibleToViewer(ctx, u, ctx.Doer) {
ctx.Error(http.StatusNotFound)
return
}