mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-05 00:44:12 +08:00
Add user profile as alias.
This commit is contained in:
parent
0d120f8a8d
commit
5d61e5955b
|
@ -90,7 +90,9 @@ func WebfingerQuery(ctx *context.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
aliases := make([]string, 0, 1)
|
||||
aliases := []string{
|
||||
u.HTMLURL(),
|
||||
}
|
||||
if !u.KeepEmailPrivate {
|
||||
aliases = append(aliases, fmt.Sprintf("mailto:%s", u.Email))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user