From aab6b739d8dfeb53f66d975a1e20133b0acb41ec Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 13 Aug 2019 15:54:47 +0000 Subject: [PATCH] Use the contact id whenever we are following the contact --- src/Model/Item.php | 2 ++ 1 file changed, 2 insertions(+) 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'])) {