From 5feeffbe79c2be648165a35c8e80650ab9a54c03 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 11 Aug 2019 16:41:00 -0400 Subject: [PATCH] Use network field instead of protocol in Group::expand - contact.protocol field isn't systematically populated --- src/Model/Group.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/Group.php b/src/Model/Group.php index 50160baaf..64b868466 100644 --- a/src/Model/Group.php +++ b/src/Model/Group.php @@ -334,7 +334,7 @@ class Group extends BaseObject $followers = Contact::selectToArray(['id'], [ 'uid' => $uid, 'rel' => [Contact::FOLLOWER, Contact::FRIEND], - 'protocol' => Protocol::SUPPORT_PRIVATE, + 'network' => Protocol::SUPPORT_PRIVATE, ]); foreach ($followers as $follower) { @@ -349,7 +349,7 @@ class Group extends BaseObject $mutuals = Contact::selectToArray(['id'], [ 'uid' => $uid, 'rel' => [Contact::FRIEND], - 'protocol' => Protocol::SUPPORT_PRIVATE, + 'network' => Protocol::SUPPORT_PRIVATE, ]); foreach ($mutuals as $mutual) {