mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-30 20:00:37 +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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
aliases := make([]string, 0, 1)
|
aliases := []string{
|
||||||
|
u.HTMLURL(),
|
||||||
|
}
|
||||||
if !u.KeepEmailPrivate {
|
if !u.KeepEmailPrivate {
|
||||||
aliases = append(aliases, fmt.Sprintf("mailto:%s", u.Email))
|
aliases = append(aliases, fmt.Sprintf("mailto:%s", u.Email))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue