From 9dc91965b1886e813aa29f5f7fb6512e2af29858 Mon Sep 17 00:00:00 2001 From: FChannel <=> Date: Sun, 17 Jan 2021 20:45:07 -0800 Subject: support for preview images --- activityPubStruct.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activityPubStruct.go') 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"` -- cgit v1.2.3