1
0
Fork 0

Merge pull request #4035 from pixelfed/staging

Update ap inbox
This commit is contained in:
daniel 2022-12-29 04:24:32 -07:00 committed by GitHub
commit 9c2af1e80e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

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;
}