]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Meteor/meteorupdater.js
Got photos displaying in the feed *the right way*
[quix0rs-gnu-social.git] / plugins / Meteor / meteorupdater.js
index e8bca3eb4965f458c54c5b3a0a9b3c62348414e1..cdd1d63fabb5f31adaea7da8e2af81b848e3d63b 100644 (file)
@@ -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;