Fix videos picker

This commit is contained in:
lalka2018 2023-11-16 14:35:08 +03:00
parent 704fdb113b
commit 3112372d01

View file

@ -108,7 +108,7 @@ class Wall implements Handler
];
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;