mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 02:38:35 +00:00
Add visible check.
This commit is contained in:
@@ -85,7 +85,10 @@ func WebfingerQuery(ctx *context.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
// Should we check IsUserVisibleToViewer here?
|
||||
if !user_model.IsUserVisibleToViewer(u, ctx.Doer) {
|
||||
ctx.Error(http.StatusNotFound)
|
||||
return
|
||||
}
|
||||
|
||||
aliases := make([]string, 0, 1)
|
||||
if !u.KeepEmailPrivate {
|
||||
|
Reference in New Issue
Block a user