Diff

mod_nodeinfo2/mod_nodeinfo2.lua @ 3706:36b645e94325

mod_nodeinfo2: Add some TODOs
author Kim Alvefur <zash@zash.se>
date Thu, 10 Oct 2019 16:55:54 +0200
parent 3705:5d3d8b75dee9
child 3707:3248295e1b16
line wrap: on
line diff
--- a/mod_nodeinfo2/mod_nodeinfo2.lua	Tue Jun 25 09:05:59 2019 +0200
+++ b/mod_nodeinfo2/mod_nodeinfo2.lua	Thu Oct 10 16:55:54 2019 +0200
@@ -4,7 +4,7 @@
 module:depends("http");
 
 local total_users = 0;
-for _ in require "core.usermanager".users(module.host) do
+for _ in require "core.usermanager".users(module.host) do -- TODO refresh at some interval?
 	total_users = total_users + 1;
 end
 
@@ -21,7 +21,7 @@
 					software = "Prosody";
 					version = prosody.version;
 				};
-				--[[
+				--[[ TODO re-use data from mod_server_contact_info ?
 				organization = {
 					name = "";
 					contact = "";
@@ -31,7 +31,7 @@
 				protocols = array {
 					"xmpp",
 				};
-				--[[
+				--[[ TODO would be cool to identify local transports
 				services = {
 					inbound = array {
 						"irc";
@@ -44,6 +44,7 @@
 				usage = {
 					users = {
 						total = total_users;
+						-- TODO how would one calculate these?
 						-- activeHalfyear = 1;
 						-- activeMonth = 1;
 						-- activeWeek = 1;