diff src/chat.luan @ 83:a47036fd0158

group chat
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 11 Mar 2025 13:56:59 -0600
parents 8270106644db
children
line wrap: on
line diff
--- a/src/chat.luan	Mon Mar 10 22:42:46 2025 -0600
+++ b/src/chat.luan	Tue Mar 11 13:56:59 2025 -0600
@@ -4,6 +4,8 @@
 local Table = require "luan:Table.luan"
 local concat = Table.concat or error()
 local is_empty = Table.is_empty or error()
+local Html = require "luan:Html.luan"
+local url_encode = Html.url_encode or error()
 local Http = require "luan:http/Http.luan"
 local Shared = require "site:/lib/Shared.luan"
 local http_push_to_users = Shared.http_push_to_users or error()
@@ -27,7 +29,7 @@
 		if not is_empty(with) then
 			local t = {}
 			for email in pairs(with) do
-				t[#t+1] = "with="..email
+				t[#t+1] = "with="..url_encode(email)
 			end
 			url = url.."?"..concat(t,"&")
 		end