diff --git a/app/Util/ActivityPub/Helpers.php b/app/Util/ActivityPub/Helpers.php index 7bba5d5ba..048b35dc5 100644 --- a/app/Util/ActivityPub/Helpers.php +++ b/app/Util/ActivityPub/Helpers.php @@ -413,8 +413,8 @@ class Helpers { $profile = new Profile(); $profile->domain = $domain; $profile->username = (string) Purify::clean($remoteUsername); - $profile->name = Purify::clean($res['name']) ?? 'user'; - $profile->bio = Purify::clean($res['summary']); + $profile->name = isset($res['name']) ? Purify::clean($res['name']) : 'user'; + $profile->bio = isset($res['summary']) ? Purify::clean($res['summary']) : null; $profile->sharedInbox = isset($res['endpoints']) && isset($res['endpoints']['sharedInbox']) ? $res['endpoints']['sharedInbox'] : null; $profile->inbox_url = $res['inbox']; $profile->outbox_url = $res['outbox'];