mirror of
https://github.com/openvk/openvk
synced 2025-01-09 01:09:46 +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
|
else
|
||||||
$response[$i]->can_post = $clb->canPost();
|
$response[$i]->can_post = $clb->canPost();
|
||||||
break;
|
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