diff options
Diffstat (limited to 'activityPubStruct.go')
-rw-r--r-- | activityPubStruct.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activityPubStruct.go b/activityPubStruct.go index 81045f6..d200f64 100644 --- a/activityPubStruct.go +++ b/activityPubStruct.go @@ -112,7 +112,7 @@ type ObjectBase struct { Image string `json:"image,omitempty"` InReplyTo []ObjectBase `json:"inReplyTo,omitempty"` Location string `json:"location,omitempty"` - Preview string `json:"preview,omitempty"` + Preview *NestedObjectBase `json:"preview,omitempty"` Published string `json:"published,omitempty"` Updated string `json:"updated,omitempty"` Object *NestedObjectBase `json:"object,omitempty"` @@ -155,7 +155,7 @@ type NestedObjectBase struct { Image string `json:"image,omitempty"` InReplyTo []ObjectBase `json:"inReplyTo,omitempty"` Location string `json:"location,omitempty"` - Preview string `json:"preview,omitempty"` + Preview ObjectBase `json:"preview,omitempty"` Published string `json:"published,omitempty"` Attachment []ObjectBase `json:"attachment,omitempty"` Replies *CollectionBase `json:"replies,omitempty"` |