From 869b0262ac1c69fe41cc8d6bc59bd47f6e48f685 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sun, 30 May 2021 17:41:12 -0700 Subject: added publickeypem to actor activity requests --- activityPubStruct.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'activityPubStruct.go') 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"` -- cgit v1.2.3