summaryrefslogtreecommitdiff
path: root/internal/util/uri.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-05-09 20:34:27 +0200
committerLibravatar GitHub <noreply@github.com>2021-05-09 20:34:27 +0200
commitdc338dc881ead40723f0540aac7fe894f58b174d (patch)
treea000a065ffe219683f68520dd66b12aa1506a9fa /internal/util/uri.go
parentFix token sweep (#19) (diff)
downloadgotosocial-dc338dc881ead40723f0540aac7fe894f58b174d.tar.xz
Webfinger + Small fixes (#20)
Diffstat (limited to 'internal/util/uri.go')
-rw-r--r--internal/util/uri.go4
1 files changed, 2 insertions, 2 deletions
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,