diff --git a/VKAPI/Handlers/Wall.php b/VKAPI/Handlers/Wall.php index 5ada3b55e..b27e08ae3 100644 --- a/VKAPI/Handlers/Wall.php +++ b/VKAPI/Handlers/Wall.php @@ -239,6 +239,13 @@ public function get(int $owner_id, string $domain = "", int $offset = 0, int $co $groups[] = $from_id * -1; } + $owner_id = $post->getTargetWall(); + if ($owner_id > 0) { + $profiles[] = $owner_id; + } else { + $groups[] = $owner_id * -1; + } + if ($post->isSigned()) { $profiles[] = $post->getOwner(false)->getId(); } @@ -468,6 +475,13 @@ public function getById(string $posts, int $extended = 0, string $fields = "", U $groups[] = $from_id * -1; } + $owner_id = $post->getTargetWall(); + if ($owner_id > 0) { + $profiles[] = $owner_id; + } else { + $groups[] = $owner_id * -1; + } + if ($post->isSigned()) { $profiles[] = $post->getOwner(false)->getId(); }