don't count wall posts in unseen network total
This commit is contained in:
parent
1d2cc5c5ad
commit
e25ded6d96
2 changed files with 3 additions and 4 deletions
2
boot.php
2
boot.php
|
@ -4,7 +4,7 @@ set_time_limit(0);
|
||||||
ini_set('pcre.backtrack_limit', 250000);
|
ini_set('pcre.backtrack_limit', 250000);
|
||||||
|
|
||||||
|
|
||||||
define ( 'FRIENDIKA_VERSION', '2.2.996' );
|
define ( 'FRIENDIKA_VERSION', '2.2.997' );
|
||||||
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
|
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
|
||||||
define ( 'DB_UPDATE_VERSION', 1059 );
|
define ( 'DB_UPDATE_VERSION', 1059 );
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ function ping_init(&$a) {
|
||||||
xml_status(0);
|
xml_status(0);
|
||||||
|
|
||||||
$r = q("SELECT COUNT(*) AS `total` FROM `item`
|
$r = q("SELECT COUNT(*) AS `total` FROM `item`
|
||||||
WHERE `unseen` = 1 AND `visible` = 1 AND `deleted` = 0 AND `uid` = %d",
|
WHERE `unseen` = 1 AND `visible` = 1 AND `deleted` = 0 AND `uid` = %d AND `wall` = 0 ",
|
||||||
intval(local_user())
|
intval(local_user())
|
||||||
);
|
);
|
||||||
$network = $r[0]['total'];
|
$network = $r[0]['total'];
|
||||||
|
@ -25,8 +25,7 @@ function ping_init(&$a) {
|
||||||
);
|
);
|
||||||
$intro = $r[0]['total'];
|
$intro = $r[0]['total'];
|
||||||
|
|
||||||
if ($a->config['register_policy'] == REGISTER_APPROVE &&
|
if (($a->config['register_policy'] == REGISTER_APPROVE) && (is_site_admin())) {
|
||||||
$a->config['admin_email'] === $a->user['email']){
|
|
||||||
$r = q("SELECT COUNT(*) AS `total` FROM `register`");
|
$r = q("SELECT COUNT(*) AS `total` FROM `register`");
|
||||||
$register = $r[0]['total'];
|
$register = $r[0]['total'];
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue