From 0ce756596ecfe5551639a445dfcd0e9ec69881df Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 18 Feb 2022 05:56:17 +0000 Subject: [PATCH] Tests again --- src/Model/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 41f737bc0..5b31a8078 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -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'] ?? 0))) { + 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; }