X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FMeteor%2Fmeteorupdater.js;h=cdd1d63fabb5f31adaea7da8e2af81b848e3d63b;hb=5dfb8e2bc418d1144c953214a40b4dd730ca148b;hp=e8bca3eb4965f458c54c5b3a0a9b3c62348414e1;hpb=49e91ec7d068fa7b98576207696d2192418baf5b;p=quix0rs-gnu-social.git diff --git a/plugins/Meteor/meteorupdater.js b/plugins/Meteor/meteorupdater.js index e8bca3eb49..cdd1d63fab 100644 --- a/plugins/Meteor/meteorupdater.js +++ b/plugins/Meteor/meteorupdater.js @@ -1,5 +1,4 @@ -// update the local timeline from a Meteor server -// +// Update the local timeline from a Meteor server var MeteorUpdater = function() { @@ -7,17 +6,8 @@ var MeteorUpdater = function() init: function(server, port, timeline) { - var screen_name; - Meteor.callbacks["process"] = function(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); - } + RealtimeUpdate.receive(JSON.parse(data)); }; Meteor.host = server;