From: Michael Date: Thu, 17 Feb 2022 23:06:57 +0000 (+0000) Subject: Improve look of reshared items on the forum profile X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7a5a8c8d68033b3f71bdf43fc8c845bd5135ffd8;p=friendica.git Improve look of reshared items on the forum profile --- diff --git a/src/Model/Item.php b/src/Model/Item.php index 0d53049bc1..1d8d57ab8c 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; }