wordpress-activitypub/includes/class-server.php
Django Doucet 9e8065ae5c lint:fix
2023-11-08 12:58:04 -07:00

25 lines
516 B
PHP

<?php
namespace Activitypub;
/**
* ActivityPub Server Class
*
* @author Django Doucet
*/
class Server {
private static function known_inboxes() {
$authors = get_users(
array(
'capability' => '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 ) );
}
}