Ward against the possible case that $actor is empty in ActivityPub\Processor::createItem

- Address https://github.com/friendica/friendica/issues/11993#issuecomment-1323273452
This commit is contained in:
Hypolite Petovan 2022-11-23 10:47:51 -05:00
parent a8eabae12f
commit a5af1408d6

View file

@ -431,7 +431,7 @@ class Processor
$item['owner-id'] = $item['author-id'];
} else {
$actor = APContact::getByURL($item['owner-link'], false);
$item['isForum'] = ($actor['type'] == 'Group');
$item['isForum'] = ($actor['type'] ?? 'Person') == 'Group';
}
$item['uri'] = $activity['id'];