diff --git a/src/Core/Protocol.php b/src/Core/Protocol.php index 759a6e70e6..0ecc076a0f 100644 --- a/src/Core/Protocol.php +++ b/src/Core/Protocol.php @@ -25,6 +25,8 @@ class Protocol const FEDERATED = [self::DFRN, self::DIASPORA, self::OSTATUS, self::ACTIVITYPUB]; + const SUPPORT_PRIVATE = [self::DFRN, self::DIASPORA, self::MAIL, self::ACTIVITYPUB, self::PUMPIO]; + // Supported through a connector const DIASPORA2 = 'dspc'; // Diaspora connector const LINKEDIN = 'lnkd'; // LinkedIn diff --git a/src/Model/Group.php b/src/Model/Group.php index a9d2f462e6..965dfe8d7f 100644 --- a/src/Model/Group.php +++ b/src/Model/Group.php @@ -336,7 +336,7 @@ class Group extends BaseObject $followersStmt = Contact::select(['id'], [ 'uid' => $uid, 'rel' => [Contact::FOLLOWER, Contact::FRIEND], - 'protocol' => Protocol::NATIVE_SUPPORT, + 'protocol' => Protocol::SUPPORT_PRIVATE, ]); while($follower = DBA::fetch($followersStmt)) { @@ -351,7 +351,7 @@ class Group extends BaseObject $mutualsStmt = Contact::select(['id'], [ 'uid' => $uid, 'rel' => [Contact::FRIEND], - 'protocol' => Protocol::NATIVE_SUPPORT, + 'protocol' => Protocol::SUPPORT_PRIVATE, ]); while($mutual = DBA::fetch($mutualsStmt)) {