Use network field instead of protocol in Group::expand

- contact.protocol field isn't systematically populated
2022.09-rc
Hypolite Petovan 2019-08-11 16:41:00 -04:00
rodzic 828a81d325
commit 5feeffbe79
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -334,7 +334,7 @@ class Group extends BaseObject
$followers = Contact::selectToArray(['id'], [ $followers = Contact::selectToArray(['id'], [
'uid' => $uid, 'uid' => $uid,
'rel' => [Contact::FOLLOWER, Contact::FRIEND], 'rel' => [Contact::FOLLOWER, Contact::FRIEND],
'protocol' => Protocol::SUPPORT_PRIVATE, 'network' => Protocol::SUPPORT_PRIVATE,
]); ]);
foreach ($followers as $follower) { foreach ($followers as $follower) {
@ -349,7 +349,7 @@ class Group extends BaseObject
$mutuals = Contact::selectToArray(['id'], [ $mutuals = Contact::selectToArray(['id'], [
'uid' => $uid, 'uid' => $uid,
'rel' => [Contact::FRIEND], 'rel' => [Contact::FRIEND],
'protocol' => Protocol::SUPPORT_PRIVATE, 'network' => Protocol::SUPPORT_PRIVATE,
]); ]);
foreach ($mutuals as $mutual) { foreach ($mutuals as $mutual) {