From 6b2a6ae8cd9f04bade5e7d21fa1c0cfcc70ced5d Mon Sep 17 00:00:00 2001 From: veselcraft Date: Tue, 25 Oct 2022 13:18:02 +0300 Subject: [PATCH] asdjioashjgvkiushfgniukowrehjgiulwrhboi --- VKAPI/Handlers/Wall.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(),