diff options
author | FChannel <> | 2021-05-30 17:41:12 -0700 |
---|---|---|
committer | FChannel <> | 2021-05-30 17:41:12 -0700 |
commit | 869b0262ac1c69fe41cc8d6bc59bd47f6e48f685 (patch) | |
tree | f52177ef0b042759626c091cf1a3a88a1fff84a7 /activityPubStruct.go | |
parent | b4e551b3db5a5fc69befeffb7fba17b50dc2e258 (diff) |
added publickeypem to actor activity requests
Diffstat (limited to 'activityPubStruct.go')
-rw-r--r-- | activityPubStruct.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activityPubStruct.go b/activityPubStruct.go index 0955b0c..d74ae82 100644 --- a/activityPubStruct.go +++ b/activityPubStruct.go @@ -74,11 +74,18 @@ type Actor struct { Followers string `json:"followers,omitempty"` Name string `json:"name,omitempty"` PreferredUsername string `json:"preferredUsername,omitempty"` + PublicKey PublicKeyPem `json:"publicKey,omitempty"` Summary string `json:"summary,omitempty"` AuthRequirement []string `json:"authrequirement,omitempty"` Restricted bool `json:"restricted"` } +type PublicKeyPem struct { + Id string `json:"id,omitempty"` + Owner string `json:"owner,omitempty"` + PublicKeyPem string `json:"publicKeyPem,omitempty"` +} + type Activity struct { AtContext Type string `json:"type,omitempty"` |