Mercurial Hosting > chat
diff src/lib/Notify.luan @ 87:246a792adedf
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 12 Mar 2025 14:20:10 -0600 |
parents | e138343b2c76 |
children |
line wrap: on
line diff
--- a/src/lib/Notify.luan Wed Mar 12 12:26:19 2025 -0600 +++ b/src/lib/Notify.luan Wed Mar 12 14:20:10 2025 -0600 @@ -60,12 +60,14 @@ for user_id, when in pairs(shallow_copy(users)) do if now - when > wait then local user = get_user_by_id(user_id) + local name = user.name + local you = name and name..", you" or "You" -- logger.info("notify "..user.notify_email.." "..user_id) send_mail { To = user.notify_email Subject = "New Messages" body = `%> -You have received new messages. +<%=you%> have received new messages. <%= base_url %>/