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:
parent
a8eabae12f
commit
a5af1408d6
|
@ -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'];
|
||||
|
|
Loading…
Reference in New Issue
Block a user