VKAPI: 500 error hotfix

This commit is contained in:
veselcraft 2023-03-02 12:09:13 +03:00
parent 299e5c6354
commit 543c46696d
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -673,7 +673,7 @@ final class Wall extends VKAPIRequestHandler
"date" => $attachment->getPublicationTime()->timestamp(),
"id" => $attachment->getVirtualId(),
"owner_id" => $attachment->getOwner()->getId(),
"sizes" => array_values($attachment->getVkApiSizes()),
"sizes" => !is_null($attachment->getVkApiSizes()) ? array_values($attachment->getVkApiSizes()) : NULL,
"text" => "",
"has_tags" => false
]