Add user profile as alias.
This commit is contained in:
parent
0d120f8a8d
commit
5d61e5955b
|
@ -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 New Issue