diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index 7a48512c3..e7873e2d7 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -77,7 +77,8 @@ socket.on('speak', function(json) { document.getElementsByClassName('avatar')[0].classList.remove('d-none') document.getElementsByClassName('avatar')[0].src = json['avatar'] document.getElementsByClassName('userlink')[0].href = '/@' + json['username'] - document.getElementsByClassName('userlink')[0].style.color = '#' + json['namecolor'] + document.getElementsByClassName('userlink')[0].style.color = '#' + json['namecolor'] + document.getElementsByClassName('time')[0].innerHTML = 'just now' } document.getElementsByClassName('userlink')[0].innerHTML = json['username'] diff --git a/files/templates/chat.html b/files/templates/chat.html index 8bfe6f7ed..38e0b4203 100644 --- a/files/templates/chat.html +++ b/files/templates/chat.html @@ -136,7 +136,7 @@