From d15b416397596604842d9cdd50d90c21ed5b68af Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 26 Aug 2022 01:20:17 +0200 Subject: [PATCH] add "just now" to chat messages delievered by sockets --- files/routes/chat.py | 1 - files/templates/chat.html | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/chat.py b/files/routes/chat.py index 89201cd04..f5b6ea671 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -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) diff --git a/files/templates/chat.html b/files/templates/chat.html index a6e4b935b..8bfe6f7ed 100644 --- a/files/templates/chat.html +++ b/files/templates/chat.html @@ -136,6 +136,7 @@
+ just now