add "just now" to chat messages delievered by sockets

remotes/1693045480750635534/spooky-22
Aevann1 2022-08-26 01:20:17 +02:00
parent 6cbae35a63
commit d15b416397
2 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,6 @@ def speak(data, v):
v.shadowbanned = 'AutoJanny'
g.db.add(v)
send_repeatable_notification(CARP_ID, f"{v.username} has been shadowbanned because of a chat message.")
send_repeatable_notification(CARP_ID, f"{v.username} has been shadowbanned because of a chat message.")
else:
emit('speak', data, broadcast=True)
messages.append(data)

View File

@ -136,6 +136,7 @@
<div>
<img class="avatar pp20 mr-1" data-toggle="tooltip" data-placement="right">
<a href="" class="font-weight-bold text-black userlink" target="_blank"></a>
<span class="text-black time ml-2">just now</a>
<div class="cdiv">
<span class="chat-message text-black text-break"></span>
<span class="text d-none"></span>