Merge pull request #6223 from intentionally-left-nil/fix-update-no-shared-inbox

Fix null dereference error when updating the sharedInbox
pull/6224/head
dansup 2 weeks ago committed by GitHub
commit 59cccb1a25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -47,8 +47,9 @@ class HandleUpdateActivity implements ShouldQueue
return;
}
if ($profile->sharedInbox == null || $profile->sharedInbox != $payload['object']['endpoints']['sharedInbox']) {
$profile->sharedInbox = $payload['object']['endpoints']['sharedInbox'];
$sharedInbox = isset($payload['object']['endpoints']['sharedInbox']) ? $payload['object']['endpoints']['sharedInbox'] : null;
if ($profile->sharedInbox !== $sharedInbox) {
$profile->sharedInbox = $sharedInbox;
}
if ($profile->public_key !== $payload['object']['publicKey']['publicKeyPem']) {

Loading…
Cancel
Save