mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-26 01:36:43 +00:00
Update ap inbox
This commit is contained in:
parent
3d1c2a4acf
commit
48485d44e7
1 changed files with 9 additions and 1 deletions
|
@ -829,7 +829,15 @@ class Inbox
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'Like':
|
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) {
|
if(!$status) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue