that's why i need to refactor this

This commit is contained in:
veselcraft 2022-03-25 14:46:40 +03:00
parent 4bf6fce260
commit 4cf50790b1
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -162,7 +162,7 @@ final class Wall extends VKAPIRequestHandler
$attachments[] = [ $attachments[] = [
"type" => "photo", "type" => "photo",
"photo" => [ "photo" => [
"album_id" => $attachment->getAlbum()->getId(), "album_id" => $attachment->getAlbum() ? $attachment->getAlbum()->getId() : null,
"date" => $attachment->getPublicationTime()->timestamp(), "date" => $attachment->getPublicationTime()->timestamp(),
"id" => $attachment->getVirtualId(), "id" => $attachment->getVirtualId(),
"owner_id" => $attachment->getOwner()->getId(), "owner_id" => $attachment->getOwner()->getId(),