VKAPI: Fix some stupid code quirks

This commit is contained in:
veselcraft 2022-10-09 17:39:22 +03:00
parent 8c314adf6c
commit b3aa8e41b1
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -42,7 +42,7 @@ final class Wall extends VKAPIRequestHandler
foreach($attachment->getChildren() as $repostAttachment) {
if($repostAttachment instanceof \openvk\Web\Models\Entities\Photo) {
if($attachment->isDeleted())
if($repostAttachment->isDeleted())
continue;
$repostAttachments[] = $this->getApiPhoto($repostAttachment);