https://reisub.nsupdate.info/git
/
friendica-addons.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ae0f9a
)
statistics: Don't count shares.
author
Michael Vogel
<icarus@dabo.de>
Sun, 2 Feb 2014 20:45:08 +0000
(21:45 +0100)
committer
Michael Vogel
<icarus@dabo.de>
Sun, 2 Feb 2014 20:45:08 +0000
(21:45 +0100)
statistics_json/statistics_json.php
patch
|
blob
|
history
diff --git
a/statistics_json/statistics_json.php
b/statistics_json/statistics_json.php
index
65d3985
..
ffafb40
100644
(file)
--- 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;