aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2022-04-13 11:19:17 -0500
committerAnthony Wang2022-04-13 11:19:17 -0500
commit7931e210e5ce37c4f9aa16033fd8b64b52fcfeb5 (patch)
treea06e73d2daffb77bd6eff17789198169469e1e57
parent5139b3dc194fa2cd6f36cf9fbbf62d75d7bd1f55 (diff)
Make pubKey IRI #main-key instead of /#main-key
-rw-r--r--routers/api/v1/activitypub/person.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/activitypub/person.go b/routers/api/v1/activitypub/person.go
index 4be076a9c..9df834dd4 100644
--- a/routers/api/v1/activitypub/person.go
+++ b/routers/api/v1/activitypub/person.go
@@ -67,7 +67,7 @@ func Person(ctx *context.APIContext) {
publicKeyType := streams.NewW3IDSecurityV1PublicKey()
pubKeyIDProp := streams.NewJSONLDIdProperty()
- pubKeyIRI, _ := url.Parse(link + "/#main-key")
+ pubKeyIRI, _ := url.Parse(link + "#main-key")
pubKeyIDProp.SetIRI(pubKeyIRI)
publicKeyType.SetJSONLDId(pubKeyIDProp)