From a63833c9fad57e8ba628ebfd76dacbeb0ee2b02c Mon Sep 17 00:00:00 2001 From: veselcraft Date: Mon, 24 Oct 2022 19:05:41 +0300 Subject: [PATCH] =?UTF-8?q?VKAPI:=20=D9=84=D9=82=D8=AF=20=D8=B3=D8=A6?= =?UTF-8?q?=D9=85=D8=AA=20=D9=85=D9=86=20=D8=A7=D9=84=D8=AE=D8=B1=D9=88?= =?UTF-8?q?=D8=AC=20=D8=A8=D8=AA=D8=B9=D9=84=D9=8A=D9=82=D8=A7=D8=AA=20?= =?UTF-8?q?=D9=84=D9=84=D8=A7=D9=84=D8=AA=D8=B2=D8=A7=D9=85=D8=A7=D8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 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(),