mirror of
https://github.com/openvk/openvk
synced 2025-04-24 00:53:00 +03:00
Compare commits
No commits in common. "f672e5001a29b2a5ff5dabd2f75521da05841cf4" and "45e53b2a3ed767c3c22aca9abbdb10279bfdf513" have entirely different histories.
f672e5001a
...
45e53b2a3e
8 changed files with 12 additions and 18 deletions
|
@ -18,7 +18,6 @@ define("NANOTON", 1000000000);
|
|||
class FetchToncoinTransactions extends Command
|
||||
{
|
||||
private $images;
|
||||
private $transactions;
|
||||
|
||||
protected static $defaultName = "fetch-ton";
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ class Wall implements Handler
|
|||
protected $user;
|
||||
protected $posts;
|
||||
protected $notes;
|
||||
protected $videos;
|
||||
|
||||
public function __construct(?User $user)
|
||||
{
|
||||
|
|
|
@ -248,9 +248,8 @@ final class Board extends VKAPIRequestHandler
|
|||
return 1;
|
||||
}
|
||||
|
||||
public function editComment(string $message, string $attachments, int $comment_id, int $group_id = 0, int $topic_id = 0)
|
||||
public function editComment(int $comment_id, int $group_id = 0, int $topic_id = 0, string $message, string $attachments)
|
||||
{
|
||||
# FIXME
|
||||
/*
|
||||
$this->requireUser();
|
||||
$this->willExecuteWriteAction();
|
||||
|
|
|
@ -45,7 +45,7 @@ final class Groups extends VKAPIRequestHandler
|
|||
$clbsCount = $user->getClubCount();
|
||||
}
|
||||
|
||||
$rClubs = array();
|
||||
$rClubs;
|
||||
|
||||
$ic = sizeof($clbs);
|
||||
if (sizeof($clbs) > $count) {
|
||||
|
|
|
@ -52,7 +52,7 @@ final class Newsfeed extends VKAPIRequestHandler
|
|||
return $response;
|
||||
}
|
||||
|
||||
public function getGlobal(string $fields = "", int $start_from = 0, int $start_time = 0, int $end_time = 0, int $offset = 0, int $count = 30, int $extended = 0, int $rss = 0, int $return_banned = 0)
|
||||
public function getGlobal(string $fields = "", int $start_from = 0, int $start_time = 0, int $end_time = 0, int $offset = 0, int $count = 30, int $extended = 0, int $rss = 0)
|
||||
{
|
||||
$this->requireUser();
|
||||
|
||||
|
|
|
@ -185,14 +185,12 @@ final class Notes extends VKAPIRequestHandler
|
|||
$this->fail(15, "Access denied");
|
||||
}
|
||||
|
||||
$nodez = (object) [
|
||||
"count" => 0,
|
||||
"notes" => [],
|
||||
];
|
||||
if (empty($note_ids)) {
|
||||
$nodez->count = (new NotesRepo())->getUserNotesCount($user);
|
||||
|
||||
$notes = array_slice(iterator_to_array((new NotesRepo())->getUserNotes($user, 1, $count + $offset, $sort == 0 ? "ASC" : "DESC")), $offset);
|
||||
$nodez = (object) [
|
||||
"count" => (new NotesRepo())->getUserNotesCount((new UsersRepo())->get($user_id)),
|
||||
"notes" => [],
|
||||
];
|
||||
|
||||
foreach ($notes as $note) {
|
||||
if ($note->isDeleted()) {
|
||||
|
@ -212,7 +210,6 @@ final class Notes extends VKAPIRequestHandler
|
|||
$note = (new NotesRepo())->getNoteById((int) $id[0], (int) $id[1]);
|
||||
if ($note && !$note->isDeleted()) {
|
||||
$nodez->notes[] = $note->toVkApiStruct();
|
||||
$nodez->count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ abstract class VKAPIRequestHandler
|
|||
$this->platform = $platform;
|
||||
}
|
||||
|
||||
protected function fail(int $code, string $message): never
|
||||
protected function fail(int $code, string $message): void
|
||||
{
|
||||
throw new APIErrorException($message, $code);
|
||||
}
|
||||
|
|
|
@ -478,8 +478,8 @@ return (function () {
|
|||
define('YEAR', 365 * DAY);
|
||||
|
||||
define("nullptr", null);
|
||||
define("OPENVK_DEFAULT_INSTANCE_NAME", "OpenVK");
|
||||
define("OPENVK_VERSION", "Altair Preview ($ver)");
|
||||
define("OPENVK_DEFAULT_PER_PAGE", 10);
|
||||
define("__OPENVK_ERROR_CLOCK_IN_FUTURE", "Server clock error: FK1200-DTF");
|
||||
define("OPENVK_DEFAULT_INSTANCE_NAME", "OpenVK", false);
|
||||
define("OPENVK_VERSION", "Altair Preview ($ver)", false);
|
||||
define("OPENVK_DEFAULT_PER_PAGE", 10, false);
|
||||
define("__OPENVK_ERROR_CLOCK_IN_FUTURE", "Server clock error: FK1200-DTF", false);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue