Add meta protocol group for private post support

This commit is contained in:
Hypolite Petovan 2019-07-19 22:19:29 -04:00
parent 4e427f615b
commit 3e6018b3f2
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

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