fix quoting new messages

pull/90/head
Aevann 2023-01-22 08:00:50 +02:00
parent 2448c3104f
commit bb6d798647
2 changed files with 1 additions and 2 deletions

View File

@ -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()

View File

@ -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,