This commit is contained in:
April John 2025-02-03 14:00:28 +01:00
parent 9543fe939f
commit c47575eb8d

View file

@ -152,14 +152,13 @@ async fn get_inbox_vec(ap_note: &crate::objects::post::Note) -> Vec<Url> {
let mut inbox_users: Vec<Url> = Vec::new(); let mut inbox_users: Vec<Url> = Vec::new();
let mut inbox: Vec<Url> = Vec::new(); let mut inbox: Vec<Url> = Vec::new();
for entry in ap_note.to.clone() { let entry = ap_note.to.get(0).unwrap();
if entry.to_string().eq_ignore_ascii_case(public().to_string().as_str()) { if entry.to_string().eq_ignore_ascii_case(public().to_string().as_str()) {
let (_, mentions) = ap_note.to.split_at(2); let (_, mentions) = ap_note.to.split_at(2);
inbox_users.append(&mut mentions.to_vec()); inbox_users.append(&mut mentions.to_vec());
} else { } else {
let (_, mentions) = ap_note.to.split_at(1); let (_, mentions) = ap_note.to.split_at(1);
inbox_users.append(&mut mentions.to_vec()); inbox_users.append(&mut mentions.to_vec());
}
} }
inbox_users.dedup(); inbox_users.dedup();