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