diff --git a/ServiceAPI/Wall.php b/ServiceAPI/Wall.php index 787a998ef..f25d03d4b 100644 --- a/ServiceAPI/Wall.php +++ b/ServiceAPI/Wall.php @@ -108,7 +108,7 @@ function getVideos(int $page = 1, callable $resolve, callable $reject) ]; foreach($videos as $video) { - $res = json_decode(json_encode($video->toVkApiStruct()), true); + $res = json_decode(json_encode($video->toVkApiStruct($this->user)), true); $res["video"]["author_name"] = $video->getOwner()->getCanonicalName(); $arr["items"][] = $res;