From fe79c31bc71968a0878bf3c1f0cd101e5fae52c5 Mon Sep 17 00:00:00 2001 From: Thomas Erlang Date: Wed, 28 Feb 2024 21:59:08 +0100 Subject: [PATCH] Display sub messages in the chatlog --- tbot/web/handlers/api/twitch/chatlog.py | 2 +- tbot/web/ui/twitch/logviewer/index.jsx | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/tbot/web/handlers/api/twitch/chatlog.py b/tbot/web/handlers/api/twitch/chatlog.py index b4f5e55..ecb3229 100644 --- a/tbot/web/handlers/api/twitch/chatlog.py +++ b/tbot/web/handlers/api/twitch/chatlog.py @@ -11,7 +11,7 @@ async def get(self, channel_id): await has_mod(self, channel_id) args = [channel_id] - sql = 'SELECT * FROM twitch_chatlog WHERE channel_id=%s AND type IN (1,100) ' + sql = 'SELECT * FROM twitch_chatlog WHERE channel_id=%s AND type IN (1,2,100) ' user = self.get_argument('user', None) if user: diff --git a/tbot/web/ui/twitch/logviewer/index.jsx b/tbot/web/ui/twitch/logviewer/index.jsx index 21abf33..a085175 100644 --- a/tbot/web/ui/twitch/logviewer/index.jsx +++ b/tbot/web/ui/twitch/logviewer/index.jsx @@ -147,13 +147,7 @@ class Logviewer extends React.Component { renderTypeSymbol(l) { switch(l.type) { case 2: - return B - break; - case 3: - return T - break; - case 4: - return P + return S break; case 100: return M