mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-28 10:50:34 +00:00
Add user profile as alias.
This commit is contained in:
parent
0d120f8a8d
commit
5d61e5955b
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue