diff --git a/includes/class-server.php b/includes/class-server.php new file mode 100644 index 0000000..11d017d --- /dev/null +++ b/includes/class-server.php @@ -0,0 +1,24 @@ + 'publish_posts' + ) ); + $follower_inboxes_all = []; + foreach ( $authors as $user ) { + $follower_inboxes = Followers::get_inboxes( $user->ID ); + $follower_inboxes_all = array_merge( $follower_inboxes, $follower_inboxes_all ); + } + return array_unique( array_filter( $follower_inboxes_all ) ); + } + +}