From efb1f506c302aad179f65ccda598489d47a4742d Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 21 Mar 2024 20:40:07 +0100 Subject: [PATCH] fix: add cc/to , clear bcc/bto in object too --- src/model/object.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/model/object.rs b/src/model/object.rs index d34e957f..da169755 100644 --- a/src/model/object.rs +++ b/src/model/object.rs @@ -69,6 +69,10 @@ impl crate::activitystream::Base for Model { .set_content(self.content.as_deref()) .set_context(Node::maybe_link(self.context.clone())) .set_published(Some(self.published)) + .set_to(Node::links(self.to.0.clone())) + .set_bto(Node::empty()) + .set_cc(Node::links(self.cc.0.clone())) + .set_bcc(Node::empty()) } }