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:
parent
a1de6d2d0b
commit
e907341d69
@ -140,7 +140,8 @@
|
|||||||
twitter: {type:"twitter-credentials",required:true},
|
twitter: {type:"twitter-credentials",required:true},
|
||||||
tags: {value:"",required:true},
|
tags: {value:"",required:true},
|
||||||
user: {value:"false",required:true},
|
user: {value:"false",required:true},
|
||||||
name: {value:""}
|
name: {value:""},
|
||||||
|
topic: {value:"tweets"}
|
||||||
},
|
},
|
||||||
inputs:0,
|
inputs:0,
|
||||||
outputs:1,
|
outputs:1,
|
||||||
|
@ -30,7 +30,7 @@ function TwitterInNode(n) {
|
|||||||
this.user = n.user;
|
this.user = n.user;
|
||||||
this.tags = n.tags.replace(/ /g,'');
|
this.tags = n.tags.replace(/ /g,'');
|
||||||
this.twitter = n.twitter;
|
this.twitter = n.twitter;
|
||||||
this.topic = n.topic;
|
this.topic = n.topic||"tweets";
|
||||||
this.twitterConfig = RED.nodes.getNode(this.twitter);
|
this.twitterConfig = RED.nodes.getNode(this.twitter);
|
||||||
var credentials = RED.nodes.getCredentials(this.twitter);
|
var credentials = RED.nodes.getCredentials(this.twitter);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user