From 5d61e5955be348d6d448de5c4ed102c2468ca93b Mon Sep 17 00:00:00 2001
From: KN4CK3R <admin@oldschoolhack.me>
Date: Fri, 22 Apr 2022 13:56:17 +0000
Subject: [PATCH] Add user profile as alias.

---
 routers/web/webfinger.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/routers/web/webfinger.go b/routers/web/webfinger.go
index c6f915a6e4..3e8f407849 100644
--- a/routers/web/webfinger.go
+++ b/routers/web/webfinger.go
@@ -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))
 	}