From bb6d798647ec99064bcd93e91edda06eb86ce091 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 22 Jan 2023 08:00:50 +0200 Subject: [PATCH] fix quoting new messages --- files/assets/js/chat.js | 2 -- files/routes/chat.py | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index d11e2ab77..a6e9e324c 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -179,9 +179,7 @@ function quote(t) { document.getElementById('QuotedUser').innerHTML = username const id = t.parentElement.parentElement.parentElement.id - console.log(id) document.getElementById('quotes_id').value = id - console.log(document.getElementById('quotes_id').value) document.getElementById('QuotedMessageLink').href = `#${id}` textbox.focus() diff --git a/files/routes/chat.py b/files/routes/chat.py index 1241b5620..09f65281f 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -80,6 +80,7 @@ def speak(data, v): quotes = data['quotes'] id = str(uuid.uuid4()) data = { + "id": id, "quotes": quotes if quotes != 'undefined' else '', "hat": v.hat_active(v)[0], "user_id": v.id,