mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
parent
a6ab5d38bb
commit
b70710e164
1 changed files with 6 additions and 1 deletions
|
@ -441,9 +441,14 @@ final class Wall extends VKAPIRequestHandler
|
|||
$profiles = [];
|
||||
|
||||
foreach($comments as $comment) {
|
||||
$owner = $comment->getOwner();
|
||||
$oid = $owner->getId();
|
||||
if($owner instanceof Club)
|
||||
$oid *= -1;
|
||||
|
||||
$item = [
|
||||
"id" => $comment->getId(),
|
||||
"from_id" => $comment->getOwner()->getId(),
|
||||
"from_id" => $oid,
|
||||
"date" => $comment->getPublicationTime()->timestamp(),
|
||||
"text" => $comment->getText(false),
|
||||
"post_id" => $post->getVirtualId(),
|
||||
|
|
Loading…
Reference in a new issue