diff --git a/VKAPI/Handlers/Wall.php b/VKAPI/Handlers/Wall.php index efa1283f..e2023fa5 100644 --- a/VKAPI/Handlers/Wall.php +++ b/VKAPI/Handlers/Wall.php @@ -59,7 +59,10 @@ final class Wall extends VKAPIRequestHandler } } - $groups[] = $attachment->isPostedOnBehalfOfGroup() ? $attachment->getOwner()->getId() * -1 : $attachment->getOwner()->getId(); + if ($attachment->isPostedOnBehalfOfGroup()) + $groups[] = $attachment->getOwner()->getId(); + else + $profiles[] = $attachment->getOwner()->getId(); $repost[] = [ "id" => $attachment->getVirtualId(),