Skip to content

Commit eca1711

Browse files
committed
Add visible check.
1 parent b8d4e62 commit eca1711

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

routers/web/webfinger.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ func WebfingerQuery(ctx *context.Context) {
8585
return
8686
}
8787

88-
// Should we check IsUserVisibleToViewer here?
88+
if !user_model.IsUserVisibleToViewer(u, ctx.Doer) {
89+
ctx.Error(http.StatusNotFound)
90+
return
91+
}
8992

9093
aliases := make([]string, 0, 1)
9194
if !u.KeepEmailPrivate {

0 commit comments

Comments
 (0)