Add blog user followers to known inboxes
This commit is contained in:
parent
4d83e1a67b
commit
7543884a17
1 changed files with 9 additions and 0 deletions
|
@ -2,6 +2,11 @@
|
|||
|
||||
namespace Activitypub;
|
||||
|
||||
use Activitypub\Collection\Followers;
|
||||
use Activitypub\Collection\Users;
|
||||
|
||||
use function Activitypub\is_user_disabled;
|
||||
|
||||
/**
|
||||
* ActivityPub Server Class
|
||||
*
|
||||
|
@ -20,6 +25,10 @@ class Server {
|
|||
$follower_inboxes = Followers::get_inboxes( $user->ID );
|
||||
$follower_inboxes_all = array_merge( $follower_inboxes, $follower_inboxes_all );
|
||||
}
|
||||
if ( ! is_user_disabled( Users::BLOG_USER_ID ) ) {
|
||||
$follower_inboxes = Followers::get_inboxes( Users::BLOG_USER_ID );
|
||||
$follower_inboxes_all = array_merge( $follower_inboxes, $follower_inboxes_all );
|
||||
}
|
||||
return array_unique( array_filter( $follower_inboxes_all ) );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue