This commit is contained in:
Django Doucet 2023-11-08 12:58:04 -07:00
parent 565a6caa1b
commit 9e8065ae5c
2 changed files with 7 additions and 6 deletions

View file

@ -140,7 +140,7 @@ class Activity_Dispatcher {
* @return void
*/
private static function send_activity_to_inboxes( $activity, $user_id ) {
$follower_inboxes = Followers::get_inboxes( $user_id );
$follower_inboxes = Followers::get_inboxes( $user_id );
$mentioned_inboxes = array();
$cc = $activity->get_cc();

View file

@ -9,10 +9,12 @@ namespace Activitypub;
*/
class Server {
private static function known_inboxes () {
$authors = get_users( array(
'capability' => 'publish_posts'
) );
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 );
@ -20,5 +22,4 @@ class Server {
}
return array_unique( array_filter( $follower_inboxes_all ) );
}
}