Update ap inbox

This commit is contained in:
Daniel Supernault 2022-12-29 04:22:51 -07:00
parent 3d1c2a4acf
commit 48485d44e7
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -829,7 +829,15 @@ class Inbox
break;
case 'Like':
$status = Helpers::statusFirstOrFetch($obj['object']);
$objectUri = $obj['object'];
if(!is_string($objectUri)) {
if(is_array($objectUri) && isset($objectUri['id']) && is_string($objectUri['id'])) {
$objectUri = $objectUri['id'];
} else {
return;
}
}
$status = Helpers::statusFirstOrFetch($objectUri);
if(!$status) {
return;
}