From b8c741819fe447e79a94e1779ac09d7c5db82f22 Mon Sep 17 00:00:00 2001 From: Marius Orcsik Date: Sun, 24 Nov 2019 09:28:32 +0100 Subject: [PATCH] Revert skipping marshalling for BCC and Bto fields I need to find a different solution for it --- activity.go | 4 ++-- object.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/activity.go b/activity.go index 8f97bb1..32268bf 100644 --- a/activity.go +++ b/activity.go @@ -429,11 +429,11 @@ type Question struct { // To identifies an entity considered to be part of the public primary audience of an Activity Pub Object To ItemCollection `jsonld:"to,omitempty"` // Bto identifies an Activity Pub Object that is part of the private primary audience of this Activity Pub Object. - Bto ItemCollection `jsonld:"bto,omitempty,nomarshal"` + Bto ItemCollection `jsonld:"bto,omitempty"` // CC identifies an Activity Pub Object that is part of the public secondary audience of this Activity Pub Object. CC ItemCollection `jsonld:"cc,omitempty"` // BCC identifies one or more Objects that are part of the private secondary audience of this Activity Pub Object. - BCC ItemCollection `jsonld:"bcc,omitempty,nomarshal"` + BCC ItemCollection `jsonld:"bcc,omitempty"` // Duration When the object describes a time-bound resource, such as an audio or video, a meeting, etc, // the duration property indicates the object's approximate duration. // The value must be expressed as an xsd:duration as defined by [ xmlschema11-2], diff --git a/object.go b/object.go index 37414af..d3370b5 100644 --- a/object.go +++ b/object.go @@ -460,11 +460,11 @@ type object struct { // To identifies an entity considered to be part of the public primary audience of an Activity Pub Object To ItemCollection `jsonld:"to,omitempty"` // Bto identifies anActivity Pub Object that is part of the private primary audience of this Activity Pub Object. - Bto ItemCollection `jsonld:"bto,omitempty,nomarshal"` + Bto ItemCollection `jsonld:"bto,omitempty"` // CC identifies anActivity Pub Object that is part of the public secondary audience of this Activity Pub Object. CC ItemCollection `jsonld:"cc,omitempty"` // BCC identifies one or more Objects that are part of the private secondary audience of this Activity Pub Object. - BCC ItemCollection `jsonld:"bcc,omitempty,nomarshal"` + BCC ItemCollection `jsonld:"bcc,omitempty"` // Duration when the object describes a time-bound resource, such as an audio or video, a meeting, etc, // the duration property indicates the object's approximate duration. // The value must be expressed as an xsd:duration as defined by [ xmlschema11-2],