]> git.mxchange.org Git - friendica.git/commitdiff
Use network field instead of protocol in Group::expand
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 11 Aug 2019 20:41:00 +0000 (16:41 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 11 Aug 2019 20:41:00 +0000 (16:41 -0400)
- contact.protocol field isn't systematically populated

src/Model/Group.php

index 50160baaf4a88d56a5bcf53d47514ded6f128641..64b868466a589d4c3203935db09bf64fbd8211fa 100644 (file)
@@ -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) {