From 3c5eebf6275e6d202f8a7b7f027aabcda5c1f332 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sat, 7 May 2022 15:11:35 -0700 Subject: more organizing structs to have object functions need to fully test to be sure nothing broke with changes --- activitypub/activityPubStruct.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activitypub/activityPubStruct.go') diff --git a/activitypub/activityPubStruct.go b/activitypub/activityPubStruct.go index 637982d..ee1e451 100644 --- a/activitypub/activityPubStruct.go +++ b/activitypub/activityPubStruct.go @@ -129,7 +129,7 @@ type ObjectBase struct { Updated time.Time `json:"updated,omitempty"` Object *NestedObjectBase `json:"object,omitempty"` Attachment []ObjectBase `json:"attachment,omitempty"` - Replies *CollectionBase `json:"replies,omitempty"` + Replies CollectionBase `json:"replies,omitempty"` StartTime string `json:"startTime,omitempty"` Summary string `json:"summary,omitempty"` Tag []ObjectBase `json:"tag,omitempty"` @@ -191,7 +191,7 @@ type NestedObjectBase struct { } type CollectionBase struct { - Actor *Actor `json:"actor,omitempty"` + Actor Actor `json:"actor,omitempty"` Summary string `json:"summary,omitempty"` Type string `json:"type,omitempty"` TotalItems int `json:"totalItems,omitempty"` -- cgit v1.2.3