[API] Fix bugs

This commit is contained in:
syuilo
2017-02-16 14:34:11 +09:00
parent a875f1182c
commit 9f02d2d1b8
6 changed files with 6 additions and 14 deletions

View File

@@ -26,7 +26,7 @@ module.exports = (params, me) =>
}
// Get 'iknow' parameter
const iknow = params.iknow === 'true';
const iknow = params.iknow;
// Get 'limit' parameter
let limit = params.limit;

View File

@@ -26,7 +26,7 @@ module.exports = (params, me) =>
}
// Get 'iknow' parameter
const iknow = params.iknow === 'true';
const iknow = params.iknow;
// Get 'limit' parameter
let limit = params.limit;

View File

@@ -36,17 +36,13 @@ module.exports = (params, me) =>
// Get 'with_replies' parameter
let withReplies = params.with_replies;
if (withReplies !== undefined && withReplies !== null && withReplies === 'true') {
withReplies = true;
} else {
if (withReplies == null) {
withReplies = false;
}
// Get 'with_media' parameter
let withMedia = params.with_media;
if (withMedia !== undefined && withMedia !== null && withMedia === 'true') {
withMedia = true;
} else {
if (withMedia == null) {
withMedia = false;
}