Improve look of reshared items on the forum profile

This commit is contained in:
Michael 2022-02-17 23:06:57 +00:00
parent 49dd97e5fd
commit 7a5a8c8d68

View File

@ -1236,8 +1236,9 @@ class Item
return; return;
} }
$self = Contact::selectFirst(['id'], ['uid' => $item['uid'], 'self' => true]);
$cid = Contact::getIdForURL($author['url'], $item['uid']); $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]); Logger::info('The resharer is not a following contact: quit', ['resharer' => $author['url'], 'uid' => $item['uid'], 'cid' => $cid]);
return; return;
} }