fix(apb): oops missed these, also comment out some
just for now because i dont want to implement these everywhere
This commit is contained in:
parent
151eb606b6
commit
7f091291af
1 changed files with 28 additions and 28 deletions
|
@ -4,42 +4,42 @@ pub const PUBLIC : &str = "https://www.w3.org/ns/activitystreams#Public";
|
||||||
|
|
||||||
pub trait Addressed {
|
pub trait Addressed {
|
||||||
fn addressed(&self) -> Vec<String>; // TODO rename this? remate others? idk
|
fn addressed(&self) -> Vec<String>; // TODO rename this? remate others? idk
|
||||||
fn primary_targets(&self) -> Vec<String>;
|
// fn primary_targets(&self) -> Vec<String>;
|
||||||
fn secondary_targets(&self) -> Vec<String>;
|
// fn secondary_targets(&self) -> Vec<String>;
|
||||||
fn public_targets(&self) -> Vec<String>;
|
// fn public_targets(&self) -> Vec<String>;
|
||||||
fn private_targets(&self) -> Vec<String>;
|
// fn private_targets(&self) -> Vec<String>;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T: Object> Addressed for T {
|
impl<T: Object> Addressed for T {
|
||||||
fn addressed(&self) -> Vec<String> {
|
fn addressed(&self) -> Vec<String> {
|
||||||
let mut to : Vec<String> = self.to().ids();
|
let mut to : Vec<String> = self.to().all_ids();
|
||||||
to.append(&mut self.bto().ids());
|
to.append(&mut self.bto().all_ids());
|
||||||
to.append(&mut self.cc().ids());
|
to.append(&mut self.cc().all_ids());
|
||||||
to.append(&mut self.bcc().ids());
|
to.append(&mut self.bcc().all_ids());
|
||||||
to
|
to
|
||||||
}
|
}
|
||||||
|
|
||||||
fn primary_targets(&self) -> Vec<String> {
|
// fn primary_targets(&self) -> Vec<String> {
|
||||||
let mut to : Vec<String> = self.to().ids();
|
// let mut to : Vec<String> = self.to().ids();
|
||||||
to.append(&mut self.bto().ids());
|
// to.append(&mut self.bto().ids());
|
||||||
to
|
// to
|
||||||
}
|
// }
|
||||||
|
|
||||||
fn secondary_targets(&self) -> Vec<String> {
|
// fn secondary_targets(&self) -> Vec<String> {
|
||||||
let mut to : Vec<String> = self.cc().ids();
|
// let mut to : Vec<String> = self.cc().ids();
|
||||||
to.append(&mut self.bcc().ids());
|
// to.append(&mut self.bcc().ids());
|
||||||
to
|
// to
|
||||||
}
|
// }
|
||||||
|
|
||||||
fn public_targets(&self) -> Vec<String> {
|
// fn public_targets(&self) -> Vec<String> {
|
||||||
let mut to : Vec<String> = self.to().ids();
|
// let mut to : Vec<String> = self.to().ids();
|
||||||
to.append(&mut self.cc().ids());
|
// to.append(&mut self.cc().ids());
|
||||||
to
|
// to
|
||||||
}
|
// }
|
||||||
|
|
||||||
fn private_targets(&self) -> Vec<String> {
|
// fn private_targets(&self) -> Vec<String> {
|
||||||
let mut to : Vec<String> = self.bto().ids();
|
// let mut to : Vec<String> = self.bto().ids();
|
||||||
to.append(&mut self.bcc().ids());
|
// to.append(&mut self.bcc().ids());
|
||||||
to
|
// to
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue