From c4a0d5ed9868877521aa4405879fd8f773564150 Mon Sep 17 00:00:00 2001 From: veselcraft Date: Fri, 25 Mar 2022 22:29:29 +0300 Subject: [PATCH] VKAPI: Fix stupid error when attachments duplicated over and over --- VKAPI/Handlers/Wall.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/VKAPI/Handlers/Wall.php b/VKAPI/Handlers/Wall.php index 9aa8ad37..747991d1 100644 --- a/VKAPI/Handlers/Wall.php +++ b/VKAPI/Handlers/Wall.php @@ -83,6 +83,8 @@ final class Wall extends VKAPIRequestHandler $profiles[] = $from_id; else $groups[] = $from_id * -1; + + $attachments = null; // free attachments so it will not clone everythingg } if($extended == 1) @@ -214,6 +216,8 @@ final class Wall extends VKAPIRequestHandler $profiles[] = $from_id; else $groups[] = $from_id * -1; + + $attachments = null; // free attachments so it will not clone everythingg } }