Mercurial Hosting > chat
diff src/delete_chat.js.luan @ 56:323ddacc1593
start invite
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 04 Mar 2025 07:00:42 -0700 |
parents | 7230c821c368 |
children |
line wrap: on
line diff
--- a/src/delete_chat.js.luan Mon Mar 03 21:42:38 2025 -0700 +++ b/src/delete_chat.js.luan Tue Mar 04 07:00:42 2025 -0700 @@ -1,5 +1,6 @@ local Luan = require "luan:Luan.luan" local error = Luan.error +local Io = require "luan:Io.luan" local Http = require "luan:http/Http.luan" local User = require "site:/lib/User.luan" local current_user = User.current or error() @@ -20,4 +21,8 @@ chat.delete() local js = "getChats(null)" http_push_to_users( user_ids, js ) + Io.stdout = Http.response.text_writer() +%> + location = '/'; +<% end