VKAPI: Fix Newsfeed once more again

This commit is contained in:
veselcraft 2022-09-04 20:08:22 +03:00
parent ba2981291b
commit 1f79dd7143
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -34,7 +34,7 @@ final class Newsfeed extends VKAPIRequestHandler
$rposts[] = (new PostsRepo)->get($post->id)->getPrettyId(); $rposts[] = (new PostsRepo)->get($post->id)->getPrettyId();
$response = (new Wall)->getById(implode(',', $rposts), $extended, $fields, $this->getUser()); $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; return $response;
} }
} }