mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
VKAPI: Require auth in wall.getById
This commit is contained in:
parent
e55c75b902
commit
1c520b755a
1 changed files with 2 additions and 0 deletions
|
@ -150,6 +150,8 @@ final class Wall extends VKAPIRequestHandler
|
|||
|
||||
function getById(string $posts, int $extended = 0, string $fields = "", User $user = NULL)
|
||||
{
|
||||
$this->requireUser();
|
||||
|
||||
if($user == NULL)
|
||||
$user = $this->getUser(); # костыли костыли крылышки
|
||||
|
||||
|
|
Loading…
Reference in a new issue