mirror of
https://github.com/openvk/openvk
synced 2024-12-23 09:01:15 +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 = [];
|
$profiles = [];
|
||||||
|
|
||||||
foreach($comments as $comment) {
|
foreach($comments as $comment) {
|
||||||
|
$owner = $comment->getOwner();
|
||||||
|
$oid = $owner->getId();
|
||||||
|
if($owner instanceof Club)
|
||||||
|
$oid *= -1;
|
||||||
|
|
||||||
$item = [
|
$item = [
|
||||||
"id" => $comment->getId(),
|
"id" => $comment->getId(),
|
||||||
"from_id" => $comment->getOwner()->getId(),
|
"from_id" => $oid,
|
||||||
"date" => $comment->getPublicationTime()->timestamp(),
|
"date" => $comment->getPublicationTime()->timestamp(),
|
||||||
"text" => $comment->getText(false),
|
"text" => $comment->getText(false),
|
||||||
"post_id" => $post->getVirtualId(),
|
"post_id" => $post->getVirtualId(),
|
||||||
|
|
Loading…
Reference in a new issue