mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +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[] = [
|
$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(),
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue