From daf9f6fb5dfec8e1ef14714918b37ab2ee95a3ee Mon Sep 17 00:00:00 2001 From: terrtia Date: Wed, 4 Oct 2023 14:40:13 +0200 Subject: [PATCH] fix: [chats] message css + reply ID --- bin/importer/feeders/Telegram.py | 2 +- var/www/templates/objects/chat/ChatMessages.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/importer/feeders/Telegram.py b/bin/importer/feeders/Telegram.py index 2cc6a127..313a8c9b 100755 --- a/bin/importer/feeders/Telegram.py +++ b/bin/importer/feeders/Telegram.py @@ -67,7 +67,7 @@ class TelegramFeeder(DefaultFeeder): meta = self.json_data['meta'] mess_id = self.json_data['meta']['id'] if meta.get('reply_to'): - reply_to_id = meta['reply_to']['id'] + reply_to_id = int(meta['reply_to']) else: reply_to_id = None diff --git a/var/www/templates/objects/chat/ChatMessages.html b/var/www/templates/objects/chat/ChatMessages.html index aa0bdf35..dd99b250 100644 --- a/var/www/templates/objects/chat/ChatMessages.html +++ b/var/www/templates/objects/chat/ChatMessages.html @@ -118,7 +118,7 @@

{{ date }}

{% for mess in messages[date] %} -
+
{{ mess['user-account']['id'] }}
{{ mess['hour'] }}