From cf9f5db56bbc1277ace87be0ea116e594f4f93ba Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Wed, 7 May 2025 17:52:29 -0400 Subject: [PATCH] Add Preview field to Object This supports the `preview` AS2 attribute to support short-form previews for `article`s, per FEP-b2b8. --- activitystreams/activity.go | 1 + 1 file changed, 1 insertion(+) diff --git a/activitystreams/activity.go b/activitystreams/activity.go index 4d42a63..915ae56 100644 --- a/activitystreams/activity.go +++ b/activitystreams/activity.go @@ -123,6 +123,7 @@ type Object struct { ContentMap map[string]string `json:"contentMap,omitempty"` Tag []Tag `json:"tag,omitempty"` Attachment []Attachment `json:"attachment,omitempty"` + Preview *Object `json:"preview,omitempty"` // Person Inbox string `json:"inbox,omitempty"`