mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
VKAPI: Add is_member filter property to Groups.getById
This commit is contained in:
parent
e55c75b902
commit
c5188d7230
1 changed files with 4 additions and 0 deletions
|
@ -204,6 +204,10 @@ final class Groups extends VKAPIRequestHandler
|
|||
else
|
||||
$response[$i]->can_post = $clb->canPost();
|
||||
break;
|
||||
case "is_member":
|
||||
if(!is_null($this->getUser()))
|
||||
$response[$i]->is_member = (int) $clb->getSubscriptionStatus($this->getUser());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue