diff options
author | FChannel <=> | 2021-01-17 20:45:07 -0800 |
---|---|---|
committer | FChannel <=> | 2021-01-17 20:45:07 -0800 |
commit | 9dc91965b1886e813aa29f5f7fb6512e2af29858 (patch) | |
tree | 14f80f35b7e6cfba1471e213ce9fd62dc97961e6 /activityPubStruct.go | |
parent | 89f88072c9ffd6a6e321ee7b5455665d82dbd6d7 (diff) |
support for preview images
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"` |