From 050ab43889070144703c071906046f2396ccb3bb Mon Sep 17 00:00:00 2001 From: Vladimir Barinov Date: Thu, 29 Jun 2023 16:43:56 +0300 Subject: [PATCH] API: hotfix --- VKAPI/Handlers/Wall.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VKAPI/Handlers/Wall.php b/VKAPI/Handlers/Wall.php index ee07f3c1..2f0cb3ea 100644 --- a/VKAPI/Handlers/Wall.php +++ b/VKAPI/Handlers/Wall.php @@ -215,7 +215,7 @@ final class Wall extends VKAPIRequestHandler foreach($psts as $pst) { $id = explode("_", $pst); $post = (new PostsRepo)->getPostById(intval($id[0]), intval($id[1])); - if($post) { + if($post || !$post->isDeleted()) { $from_id = get_class($post->getOwner()) == "openvk\Web\Models\Entities\Club" ? $post->getOwner()->getId() * (-1) : $post->getOwner()->getId(); $attachments = []; $repost = []; // чел высрал семь сигарет 😳 помянем 🕯