]> git.mxchange.org Git - friendica.git/commitdiff
Use the contact id whenever we are following the contact
authorMichael <heluecht@pirati.ca>
Tue, 13 Aug 2019 15:54:47 +0000 (15:54 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 13 Aug 2019 15:54:47 +0000 (15:54 +0000)
src/Model/Item.php

index fbc4a237798e896a41364dfb84820d222be10001..f1983ddf22416d51f25d0344dad3b2627308f467 100644 (file)
@@ -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'])) {