summaryrefslogtreecommitdiff
path: root/protocols/VKontakte
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2017-03-30 00:53:23 +0500
committerElzorFox <elzorfox@ya.ru>2017-03-30 00:54:39 +0500
commitf19b66b3b7259914dcf6e12423a2fea40bdbfefa (patch)
tree46b0f1fe5a2e9161dc5be403fa6895cfd2dc68b8 /protocols/VKontakte
parent4f821578e14747bca6fb8d0e99ead0d12dd818e9 (diff)
VKontakte:
fix return types for js store procedures => fix loading history for messages > 100
Diffstat (limited to 'protocols/VKontakte')
-rw-r--r--protocols/VKontakte/src/vkjs.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/vkjs.js b/protocols/VKontakte/src/vkjs.js
index 35be3e5852..c6eae9c84f 100644
--- a/protocols/VKontakte/src/vkjs.js
+++ b/protocols/VKontakte/src/vkjs.js
@@ -51,13 +51,13 @@ while (t > 0) {
t = t - 1;
if (res.length > 0) t = 0;
};
-return { "freeoffline": 1, "norepeat": Args.norepeat, "usercount": res.length, "users": res, "requests": API.friends.getRequests({ "extended": 0, "need_mutual": 0, "out": 0 }) };
+return { "freeoffline": 1, "norepeat": parseInt(Args.norepeat), "usercount": res.length, "users": res, "requests": API.friends.getRequests({ "extended": 0, "need_mutual": 0, "out": 0 }) };
// ver 2
if (Args.setonline == 1)
API.account.setOnline();
var res = API.users.get({ "user_ids": Args.userids, "fields": Args.fields, "name_case": "nom" });
-return { "freeoffline": 0, "norepeat": Args.norepeat, "usercount": res.length, "users": res, "requests": API.friends.getRequests({ "extended": 0, "need_mutual": 0, "out": 0 }) };
+return { "freeoffline": 0, "norepeat": parseInt(Args.norepeat), "usercount": res.length, "users": res, "requests": API.friends.getRequests({ "extended": 0, "need_mutual": 0, "out": 0 }) };
// Stored procedure name: RetrieveUsersInfo = End
@@ -97,7 +97,7 @@ while (Idx < FMsgs.length) {
Idx = Idx + 1;
};
var FUsers = API.users.get({ "user_ids": Uids, "name_case": "gen" });
-return { "count": index, "datetime": Args.time, "items": ret, "fwd_users": FUsers, "once": Args.once, "rcount": Args.reqcount };
+return { "count": index, "datetime": parseInt(Args.time), "items": ret, "fwd_users": FUsers, "once": parseInt(Args.once), "rcount": parseInt(Args.reqcount) };
// Stored procedure name: GetServerHistory = End
// Stored procedure name: RetrieveMessagesByIds = Begin