forked from rDrama/rDrama
add "just now" to chat messages delievered by sockets
parent
6cbae35a63
commit
d15b416397
|
@ -72,7 +72,6 @@ def speak(data, v):
|
||||||
v.shadowbanned = 'AutoJanny'
|
v.shadowbanned = 'AutoJanny'
|
||||||
g.db.add(v)
|
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.")
|
||||||
send_repeatable_notification(CARP_ID, f"{v.username} has been shadowbanned because of a chat message.")
|
|
||||||
else:
|
else:
|
||||||
emit('speak', data, broadcast=True)
|
emit('speak', data, broadcast=True)
|
||||||
messages.append(data)
|
messages.append(data)
|
||||||
|
|
|
@ -136,6 +136,7 @@
|
||||||
<div>
|
<div>
|
||||||
<img class="avatar pp20 mr-1" data-toggle="tooltip" data-placement="right">
|
<img class="avatar pp20 mr-1" data-toggle="tooltip" data-placement="right">
|
||||||
<a href="" class="font-weight-bold text-black userlink" target="_blank"></a>
|
<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">
|
<div class="cdiv">
|
||||||
<span class="chat-message text-black text-break"></span>
|
<span class="chat-message text-black text-break"></span>
|
||||||
<span class="text d-none"></span>
|
<span class="text d-none"></span>
|
||||||
|
|
Loading…
Reference in New Issue