Bump twitter to 280 chars (#372)

To close #371 

Thanks @hardillb
This commit is contained in:
Ben Hardill 2017-11-10 15:15:53 +00:00 committed by Dave Conway-Jones
parent 4959d3854f
commit 482cfea1de
2 changed files with 3 additions and 3 deletions

View File

@ -398,8 +398,8 @@ module.exports = function(RED) {
if (msg.hasOwnProperty("payload")) {
node.status({fill:"blue",shape:"dot",text:"twitter.status.tweeting"});
if (msg.payload.length > 140) {
msg.payload = msg.payload.slice(0,139);
if (msg.payload.length > 280) {
msg.payload = msg.payload.slice(0,279);
node.warn(RED._("twitter.errors.truncated"));
}

View File

@ -1,6 +1,6 @@
{
"name" : "node-red-node-twitter",
"version" : "0.1.11",
"version" : "0.1.12",
"description" : "A Node-RED node to talk to Twitter",
"dependencies" : {
"twitter-ng": "0.6.2",