mirror of
https://github.com/openvk/openvk
synced 2024-12-23 09:01:15 +03:00
that's why i need to refactor this
This commit is contained in:
parent
4bf6fce260
commit
4cf50790b1
1 changed files with 1 additions and 1 deletions
|
@ -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(),
|
||||||
|
|
Loading…
Reference in a new issue