statistics: Don't count shares.

pull/180/head
Michael Vogel 2014-02-02 21:45:08 +01:00
parent 9ae0f9a65d
commit 31cff782f8
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ function statistics_json_cron($a,$b) {
set_config('statistics_json','active_users_monthly', $active_users_monthly);
}
$posts = q("SELECT COUNT(*) AS local_posts FROM `item` WHERE `wall`");
$posts = q("SELECT COUNT(*) AS local_posts FROM `item` WHERE `wall` left(body, 6) != '[share'");
if (!is_array($posts))
$local_posts = -1;