From: Michael Vogel Date: Sun, 2 Feb 2014 20:45:08 +0000 (+0100) Subject: statistics: Don't count shares. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=31cff782f81a08d8264e3388ba0be7df4af77e1b;p=friendica-addons.git statistics: Don't count shares. --- diff --git a/statistics_json/statistics_json.php b/statistics_json/statistics_json.php index 65d3985d..ffafb400 100644 --- a/statistics_json/statistics_json.php +++ b/statistics_json/statistics_json.php @@ -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;