mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-29 08:44:06 +01:00
Add visible check.
This commit is contained in:
parent
523ca3d89b
commit
0d120f8a8d
1 changed files with 4 additions and 1 deletions
|
@ -85,7 +85,10 @@ func WebfingerQuery(ctx *context.Context) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Should we check IsUserVisibleToViewer here?
|
if !user_model.IsUserVisibleToViewer(u, ctx.Doer) {
|
||||||
|
ctx.Error(http.StatusNotFound)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
aliases := make([]string, 0, 1)
|
aliases := make([]string, 0, 1)
|
||||||
if !u.KeepEmailPrivate {
|
if !u.KeepEmailPrivate {
|
||||||
|
|
Loading…
Reference in a new issue