mirror of
https://github.com/openvk/openvk
synced 2025-07-05 23:39:53 +03:00
API: can_edit can_delete comments
This commit is contained in:
parent
ad94b770e1
commit
0d2a015ae7
1 changed files with 2 additions and 0 deletions
|
@ -873,6 +873,8 @@ final class Wall extends VKAPIRequestHandler
|
||||||
"id" => $comment->getId(),
|
"id" => $comment->getId(),
|
||||||
"from_id" => $oid,
|
"from_id" => $oid,
|
||||||
"date" => $comment->getPublicationTime()->timestamp(),
|
"date" => $comment->getPublicationTime()->timestamp(),
|
||||||
|
"can_edit" => $post->canBeEditedBy($this->getUser()),
|
||||||
|
"can_delete" => $post->canBeDeletedBy($this->getUser()),
|
||||||
"text" => $comment->getText(false),
|
"text" => $comment->getText(false),
|
||||||
"post_id" => $post->getVirtualId(),
|
"post_id" => $post->getVirtualId(),
|
||||||
"owner_id" => method_exists($post, 'isPostedOnBehalfOfGroup') && $post->isPostedOnBehalfOfGroup() ? $post->getOwner()->getId() * -1 : $post->getOwner()->getId(),
|
"owner_id" => method_exists($post, 'isPostedOnBehalfOfGroup') && $post->isPostedOnBehalfOfGroup() ? $post->getOwner()->getId() * -1 : $post->getOwner()->getId(),
|
||||||
|
|
Loading…
Reference in a new issue