fix 500 error

master
Aevann 2024-04-08 09:04:52 +02:00
parent f28e923cc6
commit 266036cd32
2 changed files with 2 additions and 6 deletions

View File

@ -135,11 +135,6 @@ socket.on('speak', function(json) {
}
})
let chat_id = 'chat'
const chat_id_el = document.getElementById('chat_id')
if (chat_id_el)
chat_id = chat_id_el.value
function send() {
const text = ta.value.trim();
const input = document.getElementById('file');
@ -153,7 +148,7 @@ function send() {
"message": text,
"quotes": document.getElementById('quotes_id').value,
"file": sending,
"chat_id": chat_id,
"chat_id": document.getElementById('chat_id').value,
});
ta.value = ''
is_typing = false

View File

@ -67,6 +67,7 @@
</div>
</div>
<input id="chat_id" hidden value="{{chat.id}}">
<input id="vid" hidden value="{{v.id}}">
<input id="slurreplacer" hidden value="{{v.slurreplacer}}">
<input id="admin_level" hidden value="{{v.admin_level}}">