даже не знаю как это комментировать, наверно потому-что какой-то девушке залили в пизду бензин и родился камаз

This commit is contained in:
veselcraft 2022-10-17 23:24:10 +03:00
parent 890d320d43
commit 98260e8d0a
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -59,6 +59,8 @@ final class Wall extends VKAPIRequestHandler
} }
} }
$groups[] = $attachment->isPostedOnBehalfOfGroup() ? $attachment->getOwner()->getId() * -1 : $attachment->getOwner()->getId();
$repost[] = [ $repost[] = [
"id" => $attachment->getVirtualId(), "id" => $attachment->getVirtualId(),
"owner_id" => $attachment->isPostedOnBehalfOfGroup() ? $attachment->getOwner()->getId() * -1 : $attachment->getOwner()->getId(), "owner_id" => $attachment->isPostedOnBehalfOfGroup() ? $attachment->getOwner()->getId() * -1 : $attachment->getOwner()->getId(),
@ -200,7 +202,9 @@ final class Wall extends VKAPIRequestHandler
$repostAttachments[] = $this->getApiPhoto($repostAttachment); $repostAttachments[] = $this->getApiPhoto($repostAttachment);
/* Рекурсии, сука! Заказывали? */ /* Рекурсии, сука! Заказывали? */
} }
} }
$groups[] = $attachment->isPostedOnBehalfOfGroup() ? $attachment->getOwner()->getId() * -1 : $attachment->getOwner()->getId();
$repost[] = [ $repost[] = [
"id" => $attachment->getVirtualId(), "id" => $attachment->getVirtualId(),
@ -606,24 +610,24 @@ final class Wall extends VKAPIRequestHandler
return [ return [
"type" => "poll", "type" => "poll",
"poll" => [ "poll" => [
"multiple" => $attachment->isMultipleChoice(), "multiple" => $attachment->isMultipleChoice(),
"end_date" => $attachment->endsAt() == NULL ? 0 : $attachment->endsAt()->timestamp(), "end_date" => $attachment->endsAt() == NULL ? 0 : $attachment->endsAt()->timestamp(),
"closed" => $attachment->hasEnded(), "closed" => $attachment->hasEnded(),
"is_board" => false, "is_board" => false,
"can_edit" => false, "can_edit" => false,
"can_vote" => $attachment->canVote($user), "can_vote" => $attachment->canVote($user),
"can_report" => false, "can_report" => false,
"can_share" => true, "can_share" => true,
"created" => 0, "created" => 0,
"id" => $attachment->getId(), "id" => $attachment->getId(),
"owner_id" => $attachment->getOwner()->getId(), "owner_id" => $attachment->getOwner()->getId(),
"question" => $attachment->getTitle(), "question" => $attachment->getTitle(),
"votes" => $attachment->getVoterCount(), "votes" => $attachment->getVoterCount(),
"disable_unvote" => $attachment->isRevotable(), "disable_unvote" => $attachment->isRevotable(),
"anonymous" => $attachment->isAnonymous(), "anonymous" => $attachment->isAnonymous(),
"answer_ids" => $userVote, "answer_ids" => $userVote,
"answers" => $answers, "answers" => $answers,
"author_id" => $attachment->getOwner()->getId(), "author_id" => $attachment->getOwner()->getId(),
] ]
]; ];
} }