Add user profile as alias.

This commit is contained in:
KN4CK3R 2022-04-22 13:56:17 +00:00 committed by Anthony Wang
parent 0d120f8a8d
commit 5d61e5955b
No known key found for this signature in database
GPG key ID: BC96B00AEC5F2D76

View file

@ -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))
}