check if inbox
exists
...to prevent warnings
This commit is contained in:
parent
1ab723eb7a
commit
55303bf34c
1 changed files with 4 additions and 1 deletions
|
@ -188,8 +188,11 @@ function get_follower_inboxes( $user_id ) {
|
|||
|
||||
foreach ( $followers as $follower ) {
|
||||
$inbox = \Activitypub\get_inbox_by_actor( $follower );
|
||||
if ( ! $inbox ) {
|
||||
continue;
|
||||
}
|
||||
// init array if empty
|
||||
if ( ! empty( $inboxes[ $inbox ] ) ) {
|
||||
if ( ! isset( $inboxes[ $inbox ] ) ) {
|
||||
$inboxes[ $inbox ] = array();
|
||||
}
|
||||
$inboxes[ $inbox ][] = $follower;
|
||||
|
|
Loading…
Reference in a new issue