1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-04 17:24:26 +00:00

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

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)