fix quoting new messages

master
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 document.getElementById('QuotedUser').innerHTML = username
const id = t.parentElement.parentElement.parentElement.id const id = t.parentElement.parentElement.parentElement.id
console.log(id)
document.getElementById('quotes_id').value = id document.getElementById('quotes_id').value = id
console.log(document.getElementById('quotes_id').value)
document.getElementById('QuotedMessageLink').href = `#${id}` document.getElementById('QuotedMessageLink').href = `#${id}`
textbox.focus() textbox.focus()

View File

@ -80,6 +80,7 @@ def speak(data, v):
quotes = data['quotes'] quotes = data['quotes']
id = str(uuid.uuid4()) id = str(uuid.uuid4())
data = { data = {
"id": id,
"quotes": quotes if quotes != 'undefined' else '', "quotes": quotes if quotes != 'undefined' else '',
"hat": v.hat_active(v)[0], "hat": v.hat_active(v)[0],
"user_id": v.id, "user_id": v.id,