mirror of
https://github.com/friendica/friendica
synced 2024-12-23 12:00:16 +00:00
Avoid PHP Warning: Illegal string offset 'type' in /src/Protocol/ActivityPub/Receiver.php on line 668
This commit is contained in:
parent
a95825dd6f
commit
265137ef44
1 changed files with 1 additions and 1 deletions
|
@ -665,7 +665,7 @@ class Receiver
|
|||
if (!empty($actor)) {
|
||||
$profile = APContact::getByURL($actor);
|
||||
$followers = $profile['followers'] ?? '';
|
||||
$is_forum = $actor['type'] == 'Group';
|
||||
$is_forum = ($actor['type'] ?? '') == 'Group';
|
||||
Logger::info('Got actor and followers', ['actor' => $actor, 'followers' => $followers]);
|
||||
} else {
|
||||
Logger::info('Empty actor', ['activity' => $activity]);
|
||||
|
|
Loading…
Reference in a new issue