1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Restore twitter in node topic

This commit is contained in:
Nicholas O'Leary 2013-10-09 20:18:09 +01:00
parent a1de6d2d0b
commit e907341d69
2 changed files with 3 additions and 2 deletions

View File

@ -140,7 +140,8 @@
twitter: {type:"twitter-credentials",required:true},
tags: {value:"",required:true},
user: {value:"false",required:true},
name: {value:""}
name: {value:""},
topic: {value:"tweets"}
},
inputs:0,
outputs:1,

View File

@ -30,7 +30,7 @@ function TwitterInNode(n) {
this.user = n.user;
this.tags = n.tags.replace(/ /g,'');
this.twitter = n.twitter;
this.topic = n.topic;
this.topic = n.topic||"tweets";
this.twitterConfig = RED.nodes.getNode(this.twitter);
var credentials = RED.nodes.getCredentials(this.twitter);