Skip to content

Commit

Permalink
Fix videos picker
Browse files Browse the repository at this point in the history
  • Loading branch information
mrilyew committed Nov 16, 2023
1 parent 704fdb1 commit 3112372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ServiceAPI/Wall.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3112372

Please sign in to comment.