]> git.mxchange.org Git - friendica.git/commitdiff
Improve look of reshared items on the forum profile
authorMichael <heluecht@pirati.ca>
Thu, 17 Feb 2022 23:06:57 +0000 (23:06 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 17 Feb 2022 23:06:57 +0000 (23:06 +0000)
src/Model/Item.php

index 0d53049bc16aa70307ee57262c171151731256e4..1d8d57ab8c9a2e3df26dbab9ae836daeb0545eb7 100644 (file)
@@ -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;
                }