]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added a check for any URL param. If found, strips them out before
authorSarven Capadisli <csarven@status.net>
Mon, 21 Sep 2009 14:30:12 +0000 (14:30 +0000)
committerSarven Capadisli <csarven@status.net>
Mon, 21 Sep 2009 14:30:12 +0000 (14:30 +0000)
going ahead with realtime timeline update.

plugins/Meteor/meteorupdater.js

index a7c87330c9bfc4ff69796984e74af8080f047e26..91d12cde9c2696b546b2eeb37cec21ef09ef6ca6 100644 (file)
@@ -11,11 +11,17 @@ var MeteorUpdater = function()
             Meteor.callbacks["process"] = function(data) {
                 var d = JSON.parse(data);
 
-                $user_url = $('address .url')[0].href+d['user']['screen_name'];
+                var user_url = $('address .url')[0].href+d['user']['screen_name'];
+
+                var wlh = window.location.href;
+
+                if (wlh.indexOf('?') > 0) {
+                   wlh = wlh.slice(0, wlh.indexOf('?'))
+                }
 
                 if (timeline == 'public' ||
-                    $user_url+'/all' == window.location.href ||
-                    $user_url == window.location.href) {
+                    user_url+'/all' == wlh ||
+                    user_url == wlh) {
 
                     RealtimeUpdate.receive(d);
                 }