aboutsummaryrefslogtreecommitdiffstats
path: root/mod/ping.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-08-03 18:17:42 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-08-03 18:17:42 -0700
commit8f7e81a8b31aa8d734d9fe014ecdb7d2a13301d2 (patch)
treed50b9bbbe27949f1796dcc74e52346590676c8c5 /mod/ping.php
parent4b39cc5f9b9de942bad9cf3a95333713f62c1d4b (diff)
downloadvolse-hubzilla-8f7e81a8b31aa8d734d9fe014ecdb7d2a13301d2.tar.gz
volse-hubzilla-8f7e81a8b31aa8d734d9fe014ecdb7d2a13301d2.tar.bz2
volse-hubzilla-8f7e81a8b31aa8d734d9fe014ecdb7d2a13301d2.zip
front page
Diffstat (limited to 'mod/ping.php')
-rw-r--r--mod/ping.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/ping.php b/mod/ping.php
index ea5c308a3..7e96b7121 100644
--- a/mod/ping.php
+++ b/mod/ping.php
@@ -8,13 +8,13 @@ function ping_init(&$a) {
xml_status(0);
$r = q("SELECT COUNT(*) AS `total` FROM `item`
- WHERE `unseen` = 1 AND `uid` = %d",
+ WHERE `unseen` = 1 AND `visible` = 1 AND `deleted` = 0 AND `uid` = %d",
intval($_SESSION['uid'])
);
$network = $r[0]['total'];
$r = q("SELECT COUNT(*) AS `total` FROM `item`
- WHERE `unseen` = 1 AND `uid` = %d AND `type` != 'remote' ",
+ WHERE `unseen` = 1 AND `visible` = 1 AND `deleted` = 0 AND `uid` = %d AND `type` != 'remote' ",
intval($_SESSION['uid'])
);
$home = $r[0]['total'];