]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #7503 from MrPetovan/bug/fix-private-permissions
authorPhilipp <admin+Github@philipp.info>
Sun, 11 Aug 2019 21:26:34 +0000 (23:26 +0200)
committerGitHub <noreply@github.com>
Sun, 11 Aug 2019 21:26:34 +0000 (23:26 +0200)
Use contact.network field instead of contact.protocol in Group::expand

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) {