From: Hypolite Petovan Date: Sat, 20 Jul 2019 02:19:29 +0000 (-0400) Subject: Add meta protocol group for private post support X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3e6018b3f27612a18fc49d6b36904ffeccbbd07a;p=friendica.git Add meta protocol group for private post support --- 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)) {