From 0d2a015ae781c7a864577fcbf910989fabcfd314 Mon Sep 17 00:00:00 2001 From: ZAZiOs <85897688+ZAZiOs@users.noreply.github.com> Date: Thu, 12 Jun 2025 00:42:27 +0300 Subject: [PATCH] API: can_edit can_delete comments --- VKAPI/Handlers/Wall.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VKAPI/Handlers/Wall.php b/VKAPI/Handlers/Wall.php index 9113eb6e..c640cac4 100644 --- a/VKAPI/Handlers/Wall.php +++ b/VKAPI/Handlers/Wall.php @@ -873,6 +873,8 @@ final class Wall extends VKAPIRequestHandler "id" => $comment->getId(), "from_id" => $oid, "date" => $comment->getPublicationTime()->timestamp(), + "can_edit" => $post->canBeEditedBy($this->getUser()), + "can_delete" => $post->canBeDeletedBy($this->getUser()), "text" => $comment->getText(false), "post_id" => $post->getVirtualId(), "owner_id" => method_exists($post, 'isPostedOnBehalfOfGroup') && $post->isPostedOnBehalfOfGroup() ? $post->getOwner()->getId() * -1 : $post->getOwner()->getId(),