1 use crate::{check_is_apub_id_valid, CommunityType};
2 use itertools::Itertools;
3 use lemmy_db_schema::source::community::Community;
4 use lemmy_utils::{settings::structs::Settings, LemmyError};
5 use lemmy_websocket::LemmyContext;
12 pub mod undo_block_user;
15 async fn list_community_follower_inboxes(
16 community: &Community,
17 additional_inboxes: Vec<Url>,
18 context: &LemmyContext,
19 ) -> Result<Vec<Url>, LemmyError> {
22 community.get_follower_inboxes(context.pool()).await?,
28 .filter(|inbox| inbox.host_str() != Some(&Settings::get().hostname))
29 .filter(|inbox| check_is_apub_id_valid(inbox, false).is_ok())
30 .map(|inbox| inbox.to_owned())