VKAPI: Add is_member filter property to Groups.getById

This commit is contained in:
veselcraft 2022-07-23 13:45:17 +03:00
parent e55c75b902
commit c5188d7230
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -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;
}
}
}