Make pubKey IRI #main-key instead of /#main-key

This commit is contained in:
Anthony Wang 2022-04-13 11:19:17 -05:00
parent 5139b3dc19
commit 7931e210e5
No known key found for this signature in database
GPG Key ID: BC96B00AEC5F2D76
1 changed files with 1 additions and 1 deletions

View File

@ -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)