summaryrefslogtreecommitdiff
path: root/plugins/Meteor
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Meteor')
-rw-r--r--plugins/Meteor/meteorupdater.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/Meteor/meteorupdater.js b/plugins/Meteor/meteorupdater.js
index 2e688336f..e8bca3eb4 100644
--- a/plugins/Meteor/meteorupdater.js
+++ b/plugins/Meteor/meteorupdater.js
@@ -7,8 +7,17 @@ var MeteorUpdater = function()
init: function(server, port, timeline)
{
+ var screen_name;
+
Meteor.callbacks["process"] = function(data) {
- RealtimeUpdate.receive(JSON.parse(data));
+ var d = JSON.parse(data);
+ screen_name = d['user']['screen_name'];
+
+ if (timeline == 'public' ||
+ $('address .url')[0].href+screen_name+'/all' == window.location.href ||
+ $('address .url')[0].href+screen_name == window.location.href) {
+ RealtimeUpdate.receive(d);
+ }
};
Meteor.host = server;