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

Twitter node: tags field not required if DM's selected

Fixes #91
This commit is contained in:
Nicholas O'Leary 2013-11-25 10:30:19 +00:00
parent 3982dcdaf1
commit 83072dcda4

View File

@ -146,7 +146,7 @@
color:"#C0DEED", color:"#C0DEED",
defaults: { defaults: {
twitter: {type:"twitter-credentials",required:true}, twitter: {type:"twitter-credentials",required:true},
tags: {value:"",required:true}, tags: {value:"",validate:function(v) { return this.user == "dm" || v.length > 0;}},
user: {value:"false",required:true}, user: {value:"false",required:true},
name: {value:""}, name: {value:""},
topic: {value:"tweets"} topic: {value:"tweets"}