mirror of
https://github.com/friendica/friendica
synced 2025-04-24 11:10:18 +00:00
New class for group related contact actions
This commit is contained in:
parent
73c112066d
commit
1d44e544cf
4 changed files with 109 additions and 79 deletions
|
@ -5271,7 +5271,7 @@ function api_friendica_group_show($type)
|
|||
// loop through all groups and retrieve all members for adding data in the user array
|
||||
$grps = [];
|
||||
foreach ($r as $rr) {
|
||||
$members = Contact::getByGroupId($rr['id']);
|
||||
$members = Contact\Group::getById($rr['id']);
|
||||
$users = [];
|
||||
|
||||
if ($type == "xml") {
|
||||
|
@ -5596,7 +5596,7 @@ function api_friendica_group_update($type)
|
|||
}
|
||||
|
||||
// remove members
|
||||
$members = Contact::getByGroupId($gid);
|
||||
$members = Contact\Group::getById($gid);
|
||||
foreach ($members as $member) {
|
||||
$cid = $member['id'];
|
||||
foreach ($users as $user) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue