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::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> {
23 .get_follower_inboxes(context.pool(), &context.settings())
30 .filter(|inbox| inbox.host_str() != Some(&context.settings().hostname))
31 .filter(|inbox| check_is_apub_id_valid(inbox, false, &context.settings()).is_ok())
32 .map(|inbox| inbox.to_owned())