X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FMeteor%2Fmeteorupdater.js;h=cdd1d63fabb5f31adaea7da8e2af81b848e3d63b;hb=634752f0d262b4fb02456889250378fca084cd2e;hp=de01d430a1220fa7830148ead1a8d9c3ef874d3e;hpb=35eb33fe2bd0d41fb4c03000c557c36125b2c809;p=quix0rs-gnu-social.git diff --git a/plugins/Meteor/meteorupdater.js b/plugins/Meteor/meteorupdater.js index de01d430a1..cdd1d63fab 100644 --- a/plugins/Meteor/meteorupdater.js +++ b/plugins/Meteor/meteorupdater.js @@ -1,6 +1,4 @@ // Update the local timeline from a Meteor server -// XXX: If @a is subscribed to @b, @a should get @b's notices in @a's Personal timeline. -// Do Replies timeline. var MeteorUpdater = function() { @@ -8,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;