Compare commits

...

2 commits

Author SHA1 Message Date
Österreich Luminota
3ae9def10a
VKAPI: Wall.getById hotfix (for real now)
Resolves GH-909
2023-06-29 22:36:01 +07:00
Vladimir Barinov
050ab43889
API: hotfix 2023-06-29 16:43:56 +03:00

View file

@ -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 = []; // чел высрал семь сигарет 😳 помянем 🕯