diff --git a/apb/src/target.rs b/apb/src/target.rs index f4096f59..7d414751 100644 --- a/apb/src/target.rs +++ b/apb/src/target.rs @@ -4,42 +4,42 @@ pub const PUBLIC : &str = "https://www.w3.org/ns/activitystreams#Public"; pub trait Addressed { fn addressed(&self) -> Vec; // TODO rename this? remate others? idk - fn primary_targets(&self) -> Vec; - fn secondary_targets(&self) -> Vec; - fn public_targets(&self) -> Vec; - fn private_targets(&self) -> Vec; + // fn primary_targets(&self) -> Vec; + // fn secondary_targets(&self) -> Vec; + // fn public_targets(&self) -> Vec; + // fn private_targets(&self) -> Vec; } impl Addressed for T { fn addressed(&self) -> Vec { - let mut to : Vec = self.to().ids(); - to.append(&mut self.bto().ids()); - to.append(&mut self.cc().ids()); - to.append(&mut self.bcc().ids()); + let mut to : Vec = self.to().all_ids(); + to.append(&mut self.bto().all_ids()); + to.append(&mut self.cc().all_ids()); + to.append(&mut self.bcc().all_ids()); to } - fn primary_targets(&self) -> Vec { - let mut to : Vec = self.to().ids(); - to.append(&mut self.bto().ids()); - to - } + // fn primary_targets(&self) -> Vec { + // let mut to : Vec = self.to().ids(); + // to.append(&mut self.bto().ids()); + // to + // } - fn secondary_targets(&self) -> Vec { - let mut to : Vec = self.cc().ids(); - to.append(&mut self.bcc().ids()); - to - } + // fn secondary_targets(&self) -> Vec { + // let mut to : Vec = self.cc().ids(); + // to.append(&mut self.bcc().ids()); + // to + // } - fn public_targets(&self) -> Vec { - let mut to : Vec = self.to().ids(); - to.append(&mut self.cc().ids()); - to - } + // fn public_targets(&self) -> Vec { + // let mut to : Vec = self.to().ids(); + // to.append(&mut self.cc().ids()); + // to + // } - fn private_targets(&self) -> Vec { - let mut to : Vec = self.bto().ids(); - to.append(&mut self.bcc().ids()); - to - } + // fn private_targets(&self) -> Vec { + // let mut to : Vec = self.bto().ids(); + // to.append(&mut self.bcc().ids()); + // to + // } }