]> git.mxchange.org Git - friendica.git/commitdiff
Avoid failed test
authorMichael <heluecht@pirati.ca>
Fri, 18 Feb 2022 05:34:18 +0000 (05:34 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 18 Feb 2022 05:34:18 +0000 (05:34 +0000)
src/Model/Item.php

index 1d8d57ab8c9a2e3df26dbab9ae836daeb0545eb7..41f737bc051cf8779798f90c1c60a96e3b62933c 100644 (file)
@@ -1238,7 +1238,7 @@ class Item
 
                $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;
                }