From 1c520b755a11e0e199fe91b3076664b5715e8574 Mon Sep 17 00:00:00 2001 From: Ilya Prokopenko Date: Sat, 23 Jul 2022 14:15:19 +0700 Subject: [PATCH] VKAPI: Require auth in wall.getById --- VKAPI/Handlers/Wall.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VKAPI/Handlers/Wall.php b/VKAPI/Handlers/Wall.php index 3abd9e21..932b682a 100644 --- a/VKAPI/Handlers/Wall.php +++ b/VKAPI/Handlers/Wall.php @@ -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(); # костыли костыли крылышки