aboutsummaryrefslogtreecommitdiff
path: root/activitypub/activityPubStruct.go
diff options
context:
space:
mode:
authorFChannel <>2022-05-07 15:11:35 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commit3c5eebf6275e6d202f8a7b7f027aabcda5c1f332 (patch)
tree5fa2d82f9375ac49be357f0f8b70db06d5c97305 /activitypub/activityPubStruct.go
parent39012c6b17073f6933a5ead8beed64df555f7348 (diff)
more organizing structs to have object functions
need to fully test to be sure nothing broke with changes
Diffstat (limited to 'activitypub/activityPubStruct.go')
-rw-r--r--activitypub/activityPubStruct.go4
1 files changed, 2 insertions, 2 deletions
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"`