mirror of
https://github.com/Automattic/wordpress-activitypub
synced 2024-10-18 16:23:34 +00:00
check for WP_Error
This commit is contained in:
parent
2538a2f1b7
commit
9b0d5857c1
1 changed files with 1 additions and 1 deletions
|
@ -302,7 +302,7 @@ class Activity_Dispatcher {
|
||||||
$actor = object_to_uri( $object['attributedTo'] );
|
$actor = object_to_uri( $object['attributedTo'] );
|
||||||
$actor = Http::get_remote_object( $actor );
|
$actor = Http::get_remote_object( $actor );
|
||||||
|
|
||||||
if ( ! $actor ) {
|
if ( ! $actor || \is_wp_error( $actor ) ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue