From f4b4f61f66f2bbba7b62597db8162c1ceede2810 Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 21 Jul 2011 17:55:15 -0700 Subject: [PATCH] provide fake first arg to ajax updater --- include/main.js | 4 ++-- mod/network.php | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/include/main.js b/include/main.js index 288fd6f018..0e9c6ee751 100644 --- a/include/main.js +++ b/include/main.js @@ -149,8 +149,8 @@ prev = 'live-' + src; in_progress = true; - var udargs = ((netargs.length) ? '/' + netargs : ''); - var update_url = 'update_' + src + udargs + '?p=' + profile_uid + '&page=' + profile_page + '&msie=' + ((msie) ? 1 : 0); + var udargs = ((netargs.length) ? '/?f=' + netargs : '?f='); + var update_url = 'update_' + src + udargs + '&p=' + profile_uid + '&page=' + profile_page + '&msie=' + ((msie) ? 1 : 0); $.get(update_url,function(data) { in_progress = false; diff --git a/mod/network.php b/mod/network.php index 28e5402834..f05bf3e344 100644 --- a/mod/network.php +++ b/mod/network.php @@ -125,10 +125,10 @@ function network_content(&$a, $update = 0) { $o .= '
' . "\r\n"; $o .= "\r\n"; } @@ -208,7 +208,6 @@ function network_content(&$a, $update = 0) { $sql_extra .= " AND `item`.`body` REGEXP '" . dbesc(escape_tags($_GET['search'])) . "' "; - $r = q("SELECT COUNT(*) AS `total` FROM `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id` WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND `item`.`deleted` = 0