From 1f79dd714332fbcd8728e9f91ab7a5ae6d97d73d Mon Sep 17 00:00:00 2001 From: veselcraft Date: Sun, 4 Sep 2022 20:08:22 +0300 Subject: [PATCH] VKAPI: Fix Newsfeed once more again --- VKAPI/Handlers/Newsfeed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VKAPI/Handlers/Newsfeed.php b/VKAPI/Handlers/Newsfeed.php index 0ff1a33a..06474220 100644 --- a/VKAPI/Handlers/Newsfeed.php +++ b/VKAPI/Handlers/Newsfeed.php @@ -34,7 +34,7 @@ final class Newsfeed extends VKAPIRequestHandler $rposts[] = (new PostsRepo)->get($post->id)->getPrettyId(); $response = (new Wall)->getById(implode(',', $rposts), $extended, $fields, $this->getUser()); - $response->next_from = end($response->items)->id; + $response->next_from = end(end($posts->page((int) ($offset + 1), $count))); // ну и костыли пиздец конечно) return $response; } }