diff src/lib/Notify.luan @ 41:818697418dbe

add voice link
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 27 Feb 2025 19:05:57 -0700
parents 7ea33179592a
children e138343b2c76
line wrap: on
line diff
--- a/src/lib/Notify.luan	Thu Feb 27 16:44:20 2025 -0700
+++ b/src/lib/Notify.luan	Thu Feb 27 19:05:57 2025 -0700
@@ -44,23 +44,23 @@
 			local user = get_user_by_id(user_id)
 			if users[user_id] == nil and user.notify_email ~= nil and (user.multi_notify or not user.was_notified) then
 				users[user_id] = now
-logger.info("add "..user_id)
+				-- logger.info("add "..user_id)
 			end
 		end
 	end
 
 	function fns.remove(user_id)
 		users[user_id] = nil
-logger.info("remove "..user_id)
+		-- logger.info("remove "..user_id)
 	end
 
 	function fns.notify()
-logger.info("notify")
+		-- logger.info("notify")
 		local now = time_now()
 		for user_id, when in pairs(shallow_copy(users)) do
 			if now - when > wait then
 				local user = get_user_by_id(user_id)
-logger.info("notify "..user.notify_email.." "..user_id)
+				-- logger.info("notify "..user.notify_email.." "..user_id)
 				send_mail {
 					From = "Web Chat <chat@luan.software>"
 					To = user.notify_email