[API] Fix bugs
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user