From 7f091291aff5cbaff2d9f248b226ed737a9cbcb2 Mon Sep 17 00:00:00 2001 From: alemi Date: Sat, 1 Jun 2024 01:26:19 +0200 Subject: [PATCH] fix(apb): oops missed these, also comment out some just for now because i dont want to implement these everywhere --- apb/src/target.rs | 56 +++++++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/apb/src/target.rs b/apb/src/target.rs index f4096f5..7d41475 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 + // } }