diff --git a/VKAPI/Handlers/Wall.php b/VKAPI/Handlers/Wall.php index 49765b05..ee23cfef 100644 --- a/VKAPI/Handlers/Wall.php +++ b/VKAPI/Handlers/Wall.php @@ -120,7 +120,7 @@ final class Wall extends VKAPIRequestHandler "post_type" => "post", "text" => $post->getText(false), "copy_history" => $repost, - "can_edit" => 0, # TODO + "can_edit" => $post->getOwner(false)->getId() == $this->getUser()->getId(), "can_delete" => $post->canBeDeletedBy($this->getUser()), "can_pin" => $post->canBePinnedBy($this->getUser()), "can_archive" => false, # TODO MAYBE @@ -295,7 +295,7 @@ final class Wall extends VKAPIRequestHandler "post_type" => "post", "text" => $post->getText(false), "copy_history" => $repost, - "can_edit" => 0, # TODO + "can_edit" => $post->getOwner(false)->getId() == $this->getUser()->getId(), "can_delete" => $post->canBeDeletedBy($user), "can_pin" => $post->canBePinnedBy($user), "can_archive" => false, # TODO MAYBE