From: Michael Date: Tue, 13 Aug 2019 15:54:47 +0000 (+0000) Subject: Use the contact id whenever we are following the contact X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=aab6b739d8dfeb53f66d975a1e20133b0acb41ec;p=friendica.git Use the contact id whenever we are following the contact --- diff --git a/src/Model/Item.php b/src/Model/Item.php index fbc4a23779..f1983ddf22 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -1243,6 +1243,8 @@ class Item extends BaseObject { if (!empty($item['contact-id']) && DBA::exists('contact', ['self' => true, 'id' => $item['contact-id']])) { return $item['contact-id']; + } elseif (($item['gravity'] == GRAVITY_PARENT) && !empty($item['uid']) && !empty($item['contact-id']) && Contact::isSharing($item['contact-id'], $item['uid'])) { + return $item['contact-id']; } elseif (!empty($item['uid']) && !Contact::isSharing($item['author-id'], $item['uid'])) { return $item['author-id']; } elseif (!empty($item['contact-id'])) {