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;
11 pub mod undo_block_user;
14 async fn list_community_follower_inboxes(
15 community: &Community,
16 additional_inboxes: Vec<Url>,
17 context: &LemmyContext,
18 ) -> Result<Vec<Url>, LemmyError> {
21 community.get_follower_inboxes(context.pool()).await?,
27 .filter(|inbox| inbox.host_str() != Some(&Settings::get().hostname))
28 .filter(|inbox| check_is_apub_id_valid(inbox, false).is_ok())
29 .map(|inbox| inbox.to_owned())