Skip to content

Commit b28ee5d

Browse files
committed
Add user profile as alias.
1 parent eca1711 commit b28ee5d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

routers/web/webfinger.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ func WebfingerQuery(ctx *context.Context) {
9090
return
9191
}
9292

93-
aliases := make([]string, 0, 1)
93+
aliases := []string{
94+
u.HTMLURL(),
95+
}
9496
if !u.KeepEmailPrivate {
9597
aliases = append(aliases, fmt.Sprintf("mailto:%s", u.Email))
9698
}

0 commit comments

Comments
 (0)