diff --git a/nodes/social/27-twitter.html b/nodes/social/27-twitter.html
index 98dcd23f8..aebcbd856 100644
--- a/nodes/social/27-twitter.html
+++ b/nodes/social/27-twitter.html
@@ -102,19 +102,17 @@
@@ -143,7 +142,7 @@
defaults: {
twitter: {type:"twitter-credentials",required:true},
tags: {value:"",required:true},
- operation: {value:"words",required:true},
+ operation: {value:"false",required:true},
name: {value:""},
topic: {value:"tweets"}
},
diff --git a/nodes/social/27-twitter.js b/nodes/social/27-twitter.js
index ef9b05787..576ea21e1 100644
--- a/nodes/social/27-twitter.js
+++ b/nodes/social/27-twitter.js
@@ -27,7 +27,7 @@ RED.nodes.registerType("twitter-credentials",TwitterNode);
function TwitterInNode(n) {
RED.nodes.createNode(this,n);
this.active = true;
- this.oper = n.operation;
+ this.user = n.user;
this.tags = n.tags.replace(/ /g,'');
this.twitter = n.twitter;
this.topic = n.topic;
@@ -46,8 +46,7 @@ function TwitterInNode(n) {
if (this.tags !== "") {
try {
var thing = 'statuses/filter';
- if (this.oper === "user") { thing = 'user'; }
- if (this.oper === "site") { thing = 'site'; }
+ if (this.user == "true") { thing = 'user'; }
function setupStream() {
if (node.active) {
twit.stream(thing, { track: [node.tags] }, function(stream) {