diff --git a/social/dweetio/55-dweetio.js b/social/dweetio/55-dweetio.js index dae53d46..6376097e 100644 --- a/social/dweetio/55-dweetio.js +++ b/social/dweetio/55-dweetio.js @@ -26,7 +26,8 @@ module.exports = function(RED) { var node = this; var isObject = function(a) { - return (!!a) && (a.constructor === Object); + if ((typeof(a) === "object") && (!Buffer.isBuffer(a)) && (!Array.isArray(a))) { return true; } + else { return false; } }; this.on("input",function(msg) { diff --git a/social/dweetio/package.json b/social/dweetio/package.json index fa39f14d..9f0dabe4 100644 --- a/social/dweetio/package.json +++ b/social/dweetio/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-dweetio", - "version" : "0.0.7", + "version" : "0.0.10", "description" : "A Node-RED node to send and receive simple dweets", "dependencies" : { "node-dweetio" : "0.0.11" diff --git a/social/twitter/27-twitter.js b/social/twitter/27-twitter.js index 5afb48b5..10db4a03 100644 --- a/social/twitter/27-twitter.js +++ b/social/twitter/27-twitter.js @@ -314,7 +314,7 @@ module.exports = function(RED) { } else { if (typeof msg.params === 'undefined') { msg.params = {}; } -+ twit.updateStatus(msg.payload, msg.params, function (err, data) { + twit.updateStatus(msg.payload, msg.params, function (err, data) { if (err) { node.status({fill:"red",shape:"ring",text:"twitter.status.failed"}); node.error(err,msg);