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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue