Skip to content

Commit

Permalink
🐛 Фикс
Browse files Browse the repository at this point in the history
  • Loading branch information
FunnyRain committed Feb 6, 2024
1 parent e980f4f commit 9e18877
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Wall.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@ public function listen($owner_id, $call, int $sleep) {
if (time() >= $this->update_time) {
if (is_array($owner_id)) {
foreach ($owner_id as $ids) {

if (is_numeric($ids)) {
$group_id = ['owner_id' => $ids];
} else $group_id = ['domain' => $ids];

$data = $this->user->VkApiRequest()->api('wall.get', [
'owner_id' => $ids,
'count' => 5,
'filter' => 'owner'
]);
] + $group_id);
$items = $data['items'];
if (count($items) == 0) continue;

Expand Down

0 comments on commit 9e18877

Please sign in to comment.