mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
Fix bug in photo vk api structure
I forgor that `pid` refers to virtual, not absolute, id
This commit is contained in:
parent
3db545f91a
commit
7b92ed58e7
1 changed files with 1 additions and 1 deletions
|
@ -300,7 +300,7 @@ class Photo extends Media
|
||||||
{
|
{
|
||||||
$res = (object) [];
|
$res = (object) [];
|
||||||
|
|
||||||
$res->id = $res->pid = $this->getId();
|
$res->id = $res->pid = $this->getVirtualId();
|
||||||
$res->owner_id = $res->user_id = $this->getOwner()->getId();
|
$res->owner_id = $res->user_id = $this->getOwner()->getId();
|
||||||
$res->aid = $res->album_id = NULL;
|
$res->aid = $res->album_id = NULL;
|
||||||
$res->width = $this->getDimensions()[0];
|
$res->width = $this->getDimensions()[0];
|
||||||
|
|
Loading…
Reference in a new issue