From dc338dc881ead40723f0540aac7fe894f58b174d Mon Sep 17 00:00:00 2001 From: Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com> Date: Sun, 9 May 2021 20:34:27 +0200 Subject: Webfinger + Small fixes (#20) --- internal/util/uri.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/util') diff --git a/internal/util/uri.go b/internal/util/uri.go index 9b96edc61..538df9210 100644 --- a/internal/util/uri.go +++ b/internal/util/uri.go @@ -46,7 +46,7 @@ const ( // FeaturedPath represents the webfinger featured location FeaturedPath = "featured" // PublicKeyPath is for serving an account's public key - PublicKeyPath = "publickey" + PublicKeyPath = "main-key" ) // APContextKey is a type used specifically for settings values on contexts within go-fed AP request chains @@ -113,7 +113,7 @@ func GenerateURIsForAccount(username string, protocol string, host string) *User followingURI := fmt.Sprintf("%s/%s", userURI, FollowingPath) likedURI := fmt.Sprintf("%s/%s", userURI, LikedPath) collectionURI := fmt.Sprintf("%s/%s/%s", userURI, CollectionsPath, FeaturedPath) - publicKeyURI := fmt.Sprintf("%s/%s", userURI, PublicKeyPath) + publicKeyURI := fmt.Sprintf("%s#%s", userURI, PublicKeyPath) return &UserURIs{ HostURL: hostURL, -- cgit v1.2.3