fix: add cc/to , clear bcc/bto in object too

This commit is contained in:
əlemi 2024-03-21 20:40:07 +01:00
parent d127385310
commit efb1f506c3
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -69,6 +69,10 @@ impl crate::activitystream::Base for Model {
.set_content(self.content.as_deref()) .set_content(self.content.as_deref())
.set_context(Node::maybe_link(self.context.clone())) .set_context(Node::maybe_link(self.context.clone()))
.set_published(Some(self.published)) .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())
} }
} }