diff --git a/VKAPI/Handlers/Wall.php b/VKAPI/Handlers/Wall.php index dad7f883..400e15da 100644 --- a/VKAPI/Handlers/Wall.php +++ b/VKAPI/Handlers/Wall.php @@ -1003,7 +1003,12 @@ final class Wall extends VKAPIRequestHandler $post->save(true); if($attachments == 'remove' || sizeof($final_attachments) > 0) { - $post->unwire(); + foreach($post->getChildren() as $att) { + if(!($att instanceof Post)) { + $post->detach($att); + } + } + foreach($final_attachments as $attachment) { $post->attach($attachment); } diff --git a/Web/Presenters/templates/components/post/microblogpost.xml b/Web/Presenters/templates/components/post/microblogpost.xml index 6377516e..9635f417 100644 --- a/Web/Presenters/templates/components/post/microblogpost.xml +++ b/Web/Presenters/templates/components/post/microblogpost.xml @@ -109,7 +109,7 @@ -
+ - +