mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-10 17:14:26 +02:00
Enable meta groups in Model\Group::getIdsByContactId
- Don't return early if contact isn't part of any group in PermissionSet::get
This commit is contained in:
parent
353dab166e
commit
ebf60cee33
2 changed files with 12 additions and 7 deletions
|
@ -117,6 +117,16 @@ class Group
|
|||
}
|
||||
DBA::close($stmt);
|
||||
|
||||
// Meta-groups
|
||||
$contact = Contact::getById($cid, ['rel']);
|
||||
if ($contact['rel'] == Contact::FOLLOWER || $contact['rel'] == Contact::FRIEND) {
|
||||
$return[] = self::FOLLOWERS;
|
||||
}
|
||||
|
||||
if ($contact['rel'] == Contact::FRIEND) {
|
||||
$return[] = self::MUTUALS;
|
||||
}
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue