Mercurial Hosting > chat
comparison src/get_chat.js.luan @ 97:991d6be9afe9
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 27 Jun 2025 22:51:56 -0600 |
parents | e33e101f5493 |
children |
comparison
equal
deleted
inserted
replaced
96:e33e101f5493 | 97:991d6be9afe9 |
---|---|
121 return function() | 121 return function() |
122 local user = current_user() or error() | 122 local user = current_user() or error() |
123 local chat = Http.request.parameters.chat or error() | 123 local chat = Http.request.parameters.chat or error() |
124 chat = get_chat_by_id(chat) or error() | 124 chat = get_chat_by_id(chat) or error() |
125 local html = `get_html(user,chat)` | 125 local html = `get_html(user,chat)` |
126 local digest = digest_message("MD5","modern scum "..random()) | 126 local digest = digest_message("MD5","luan chat "..random()) |
127 Io.stdout = Http.response.text_writer() | 127 Io.stdout = Http.response.text_writer() |
128 %> | 128 %> |
129 gotChat(<%=json_string(html)%>); | 129 gotChat(<%=json_string(html)%>); |
130 filebinUrl = 'https://filebin.net/<%=digest%>/'; | 130 filebinUrl = 'https://filebin.net/<%=digest%>/'; |
131 document.querySelector('dialog[people] div[people]').innerHTML = <%=json_string(`people(chat)`)%>; | 131 document.querySelector('dialog[people] div[people]').innerHTML = <%=json_string(`people(chat)`)%>; |