1
0
Fork 0
forked from alemi/upub

fix(apb): extract correctly actor ids from addressing

This commit is contained in:
əlemi 2024-05-22 16:34:37 +02:00
parent 317f44fba2
commit 54e7ebd905
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -8,10 +8,10 @@ pub trait Addressed {
impl<T: Object> Addressed for T {
fn addressed(&self) -> Vec<String> {
let mut to : Vec<String> = self.to().map(|x| x.href().to_string()).collect();
to.append(&mut self.bto().map(|x| x.href().to_string()).collect());
to.append(&mut self.cc().map(|x| x.href().to_string()).collect());
to.append(&mut self.bcc().map(|x| x.href().to_string()).collect());
let mut to : Vec<String> = self.to().ids();
to.append(&mut self.bto().ids());
to.append(&mut self.cc().ids());
to.append(&mut self.bcc().ids());
to
}
}