diff options
author | Sarven Capadisli <csarven@status.net> | 2009-09-20 15:14:46 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@status.net> | 2009-09-20 15:14:46 +0000 |
commit | 49e91ec7d068fa7b98576207696d2192418baf5b (patch) | |
tree | 29b192a0c0ce95b1b72e51b185575f6c025eeeb6 /plugins/Meteor | |
parent | 44820d296dd0c00cef9b48af3a3574f765042715 (diff) |
Added realtime streams for all and showstream timelines
Diffstat (limited to 'plugins/Meteor')
-rw-r--r-- | plugins/Meteor/meteorupdater.js | 11 |
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; |