/**
* Name: Statistics
- * Description: Generates some statistics for http://pods.jasonrobinson.me/
- * Version: 0.1
+ * Description: Generates some statistics for http://the-federation.info/
+ * Version: 0.2
* Author: Michael Vogel <https://pirati.ca/profile/heluecht>
+ * Status: Unsupported
*/
function statistics_json_install() {
$statistics = array(
"name" => $a->config["sitename"],
"network" => FRIENDICA_PLATFORM,
- "version" => FRIENDICA_VERSION,
+ "version" => FRIENDICA_VERSION."-".DB_UPDATE_VERSION,
"registrations_open" => ($a->config['register_policy'] != 0),
"total_users" => get_config('statistics_json','total_users'),
"active_users_halfyear" => get_config('statistics_json','active_users_halfyear'),
set_config('statistics_json','active_users_monthly', $active_users_monthly);
}
- $posts = q("SELECT COUNT(*) AS local_posts FROM `item` WHERE `wall` AND left(body, 6) != '[share'");
+ $posts = q("SELECT COUNT(*) AS local_posts FROM `item` WHERE `wall` AND `uid` != 0 AND `id` = `parent` AND left(body, 6) != '[share'");
if (!is_array($posts))
$local_posts = -1;