fix `just now` timestamp

master
Aevann 2024-03-08 07:30:01 +02:00
parent 42bfe60b89
commit a29655e0ba
1 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,9 @@ const socket = io()
socket.on('insert_reply', function(data) {
const replies = document.getElementById(`replies-of-c_${data[0]}`)
if (replies) {
replies.insertAdjacentHTML('beforeend', data[1]);
const html = data[1].replace(/data-nonce=".*?"/g, `data-nonce="${nonce}"`);
replies.insertAdjacentHTML('beforeend', html);
register_new_elements(replies.lastElementChild);
bs_trigger(replies.lastElementChild);