wordpress-activitypub/includes/class-server.php

26 lines
516 B
PHP
Raw Normal View History

2023-11-08 20:36:03 +01:00
<?php
namespace Activitypub;
/**
* ActivityPub Server Class
*
* @author Django Doucet
*/
class Server {
2023-11-08 20:58:04 +01:00
private static function known_inboxes() {
$authors = get_users(
array(
'capability' => 'publish_posts',
)
);
2023-11-08 20:36:03 +01:00
$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 ) );
}
}