diff --git a/includes/class-activity-dispatcher.php b/includes/class-activity-dispatcher.php index 6c2cad4..508c202 100644 --- a/includes/class-activity-dispatcher.php +++ b/includes/class-activity-dispatcher.php @@ -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(); diff --git a/includes/class-server.php b/includes/class-server.php index 11d017d..06e8eec 100644 --- a/includes/class-server.php +++ b/includes/class-server.php @@ -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 ) ); } - }