]> git.mxchange.org Git - friendica-addons.git/blobdiff - statistics_json/statistics_json.php
statistics: Don't count shares.
[friendica-addons.git] / statistics_json / statistics_json.php
index 65d3985dc01cef783bd2783bc09ce5db9184244c..ffafb4000c1801b15029a12ec890b3d70b95393a 100644 (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;