VKAPI: repost hotfix

This commit is contained in:
veselcraft 2022-07-23 03:39:05 +03:00
parent 0c97ca1a4d
commit a52809fbb8
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -45,8 +45,8 @@ final class Wall extends VKAPIRequestHandler
$repost[] = [
"id" => $attachment->getVirtualId(),
"owner_id" => $attachment->getOwner()->getId(),
"from_id" => $attachment->getOwner()->getId(),
"owner_id" => $attachment->isPostedOnBehalfOfGroup() ? $attachment->getOwner()->getId() * -1 : $attachment->getOwner()->getId(),
"from_id" => $attachment->isPostedOnBehalfOfGroup() ? $attachment->getOwner()->getId() * -1 : $attachment->getOwner()->getId(),
"date" => $attachment->getPublicationTime()->timestamp(),
"post_type" => "post",
"text" => $attachment->getText(false),
@ -184,8 +184,8 @@ final class Wall extends VKAPIRequestHandler
$repost[] = [
"id" => $attachment->getVirtualId(),
"owner_id" => $attachment->getOwner()->getId(),
"from_id" => $attachment->getOwner()->getId(),
"owner_id" => $attachment->isPostedOnBehalfOfGroup() ? $attachment->getOwner()->getId() * -1 : $attachment->getOwner()->getId(),
"from_id" => $attachment->isPostedOnBehalfOfGroup() ? $attachment->getOwner()->getId() * -1 : $attachment->getOwner()->getId(),
"date" => $attachment->getPublicationTime()->timestamp(),
"post_type" => "post",
"text" => $attachment->getText(false),