add known field

This commit is contained in:
doesnm 2024-06-14 21:51:44 +03:00
parent cce2e85648
commit 6abe95cb24
No known key found for this signature in database

View file

@ -286,6 +286,7 @@ func (a *Actor) whoAmI() string {
"publicKeyPem": a.publicKeyPem,
}
self["gateways"] = a.gateways
self["sameAs"] = []string{"ap://did:key:" + encoded + "/actor"}
selfString, _ := json.Marshal(self)
return string(selfString)
}