"_added_album", 32 => "_uploaded_album", ]; public function getCoverURL(): ?string { $cover = $this->getCoverVideo(); if (!$cover) { return "/assets/packages/static/openvk/img/camera_200.png"; } return $cover->getThumbnailURL(); } public function getCoverVideo(): ?Photo { $cover = $this->getRecord()->cover_video; if (!$cover) { $vids = iterator_to_array($this->fetch(1, 1)); $vid = $vids[0] ?? null; if (!$vid || $vid->isDeleted()) { return null; } else { return $vid; } } return (new Videos())->get($cover); } }