Fix bug in photo vk api structure

I forgor that `pid` refers to virtual, not absolute, id
This commit is contained in:
celestora 2023-07-13 14:27:07 +03:00 committed by GitHub
parent 3db545f91a
commit 7b92ed58e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -300,7 +300,7 @@ class Photo extends Media
{
$res = (object) [];
$res->id = $res->pid = $this->getId();
$res->id = $res->pid = $this->getVirtualId();
$res->owner_id = $res->user_id = $this->getOwner()->getId();
$res->aid = $res->album_id = NULL;
$res->width = $this->getDimensions()[0];