$self = Contact::selectFirst(['id'], ['uid' => $item['uid'], 'self' => true]);
$cid = Contact::getIdForURL($author['url'], $item['uid']);
- if (empty($cid) || (!Contact::isSharing($cid, $item['uid']) && ($cid != $self['id']))) {
+ if (empty($cid) || (!Contact::isSharing($cid, $item['uid']) && ($cid != $self['id'] ?? 0))) {
Logger::info('The resharer is not a following contact: quit', ['resharer' => $author['url'], 'uid' => $item['uid'], 'cid' => $cid]);
return;
}