forked from GNUsocial/gnu-social
Fix for API group methods, caused failure or output corruption when pulling up local groups by name in api/statusnet/groups/is_member.json/xml
This commit is contained in:
parent
5e76e0c8ac
commit
fd608c0de0
@ -1239,7 +1239,7 @@ class ApiAction extends Action
|
|||||||
if (empty($local)) {
|
if (empty($local)) {
|
||||||
return null;
|
return null;
|
||||||
} else {
|
} else {
|
||||||
return User_group::staticGet('id', $local->id);
|
return User_group::staticGet('id', $local->group_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user