mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
parent
4959d3854f
commit
482cfea1de
@ -398,8 +398,8 @@ module.exports = function(RED) {
|
|||||||
if (msg.hasOwnProperty("payload")) {
|
if (msg.hasOwnProperty("payload")) {
|
||||||
node.status({fill:"blue",shape:"dot",text:"twitter.status.tweeting"});
|
node.status({fill:"blue",shape:"dot",text:"twitter.status.tweeting"});
|
||||||
|
|
||||||
if (msg.payload.length > 140) {
|
if (msg.payload.length > 280) {
|
||||||
msg.payload = msg.payload.slice(0,139);
|
msg.payload = msg.payload.slice(0,279);
|
||||||
node.warn(RED._("twitter.errors.truncated"));
|
node.warn(RED._("twitter.errors.truncated"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "node-red-node-twitter",
|
"name" : "node-red-node-twitter",
|
||||||
"version" : "0.1.11",
|
"version" : "0.1.12",
|
||||||
"description" : "A Node-RED node to talk to Twitter",
|
"description" : "A Node-RED node to talk to Twitter",
|
||||||
"dependencies" : {
|
"dependencies" : {
|
||||||
"twitter-ng": "0.6.2",
|
"twitter-ng": "0.6.2",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user