From 7a5a8c8d68033b3f71bdf43fc8c845bd5135ffd8 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 17 Feb 2022 23:06:57 +0000 Subject: [PATCH] Improve look of reshared items on the forum profile --- src/Model/Item.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 0d53049bc..1d8d57ab8 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -1236,8 +1236,9 @@ class Item return; } + $self = Contact::selectFirst(['id'], ['uid' => $item['uid'], 'self' => true]); $cid = Contact::getIdForURL($author['url'], $item['uid']); - if (empty($cid) || !Contact::isSharing($cid, $item['uid'])) { + if (empty($cid) || (!Contact::isSharing($cid, $item['uid']) && ($cid != $self['id']))) { Logger::info('The resharer is not a following contact: quit', ['resharer' => $author['url'], 'uid' => $item['uid'], 'cid' => $cid]); return; }