VKAPI: Require auth in wall.getById

This commit is contained in:
Ilya Prokopenko 2022-07-23 14:15:19 +07:00
parent e55c75b902
commit 1c520b755a
No known key found for this signature in database
GPG key ID: 7736BBBB05F14A56

View file

@ -150,6 +150,8 @@ final class Wall extends VKAPIRequestHandler
function getById(string $posts, int $extended = 0, string $fields = "", User $user = NULL) function getById(string $posts, int $extended = 0, string $fields = "", User $user = NULL)
{ {
$this->requireUser();
if($user == NULL) if($user == NULL)
$user = $this->getUser(); # костыли костыли крылышки $user = $this->getUser(); # костыли костыли крылышки