mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
даже не знаю как это комментировать, наверно потому-что какой-то девушке залили в пизду бензин и родился камаз
This commit is contained in:
parent
890d320d43
commit
98260e8d0a
1 changed files with 22 additions and 18 deletions
|
@ -59,6 +59,8 @@ final class Wall extends VKAPIRequestHandler
|
|||
}
|
||||
}
|
||||
|
||||
$groups[] = $attachment->isPostedOnBehalfOfGroup() ? $attachment->getOwner()->getId() * -1 : $attachment->getOwner()->getId();
|
||||
|
||||
$repost[] = [
|
||||
"id" => $attachment->getVirtualId(),
|
||||
"owner_id" => $attachment->isPostedOnBehalfOfGroup() ? $attachment->getOwner()->getId() * -1 : $attachment->getOwner()->getId(),
|
||||
|
@ -200,7 +202,9 @@ final class Wall extends VKAPIRequestHandler
|
|||
$repostAttachments[] = $this->getApiPhoto($repostAttachment);
|
||||
/* Рекурсии, сука! Заказывали? */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$groups[] = $attachment->isPostedOnBehalfOfGroup() ? $attachment->getOwner()->getId() * -1 : $attachment->getOwner()->getId();
|
||||
|
||||
$repost[] = [
|
||||
"id" => $attachment->getVirtualId(),
|
||||
|
@ -606,24 +610,24 @@ final class Wall extends VKAPIRequestHandler
|
|||
return [
|
||||
"type" => "poll",
|
||||
"poll" => [
|
||||
"multiple" => $attachment->isMultipleChoice(),
|
||||
"end_date" => $attachment->endsAt() == NULL ? 0 : $attachment->endsAt()->timestamp(),
|
||||
"closed" => $attachment->hasEnded(),
|
||||
"is_board" => false,
|
||||
"can_edit" => false,
|
||||
"can_vote" => $attachment->canVote($user),
|
||||
"can_report" => false,
|
||||
"can_share" => true,
|
||||
"created" => 0,
|
||||
"id" => $attachment->getId(),
|
||||
"owner_id" => $attachment->getOwner()->getId(),
|
||||
"question" => $attachment->getTitle(),
|
||||
"votes" => $attachment->getVoterCount(),
|
||||
"multiple" => $attachment->isMultipleChoice(),
|
||||
"end_date" => $attachment->endsAt() == NULL ? 0 : $attachment->endsAt()->timestamp(),
|
||||
"closed" => $attachment->hasEnded(),
|
||||
"is_board" => false,
|
||||
"can_edit" => false,
|
||||
"can_vote" => $attachment->canVote($user),
|
||||
"can_report" => false,
|
||||
"can_share" => true,
|
||||
"created" => 0,
|
||||
"id" => $attachment->getId(),
|
||||
"owner_id" => $attachment->getOwner()->getId(),
|
||||
"question" => $attachment->getTitle(),
|
||||
"votes" => $attachment->getVoterCount(),
|
||||
"disable_unvote" => $attachment->isRevotable(),
|
||||
"anonymous" => $attachment->isAnonymous(),
|
||||
"answer_ids" => $userVote,
|
||||
"answers" => $answers,
|
||||
"author_id" => $attachment->getOwner()->getId(),
|
||||
"anonymous" => $attachment->isAnonymous(),
|
||||
"answer_ids" => $userVote,
|
||||
"answers" => $answers,
|
||||
"author_id" => $attachment->getOwner()->getId(),
|
||||
]
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue