aboutsummaryrefslogtreecommitdiff
path: root/activityPubStruct.go
diff options
context:
space:
mode:
authorFChannel <>2021-05-30 17:41:12 -0700
committerFChannel <>2021-05-30 17:41:12 -0700
commit869b0262ac1c69fe41cc8d6bc59bd47f6e48f685 (patch)
treef52177ef0b042759626c091cf1a3a88a1fff84a7 /activityPubStruct.go
parentb4e551b3db5a5fc69befeffb7fba17b50dc2e258 (diff)
added publickeypem to actor activity requests
Diffstat (limited to 'activityPubStruct.go')
-rw-r--r--activityPubStruct.go7
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"`