mirror of https://github.com/CIRCL/AIL-framework
fix: [chats] message css + reply ID
parent
c19b1f34e3
commit
daf9f6fb5d
|
@ -67,7 +67,7 @@ class TelegramFeeder(DefaultFeeder):
|
||||||
meta = self.json_data['meta']
|
meta = self.json_data['meta']
|
||||||
mess_id = self.json_data['meta']['id']
|
mess_id = self.json_data['meta']['id']
|
||||||
if meta.get('reply_to'):
|
if meta.get('reply_to'):
|
||||||
reply_to_id = meta['reply_to']['id']
|
reply_to_id = int(meta['reply_to'])
|
||||||
else:
|
else:
|
||||||
reply_to_id = None
|
reply_to_id = None
|
||||||
|
|
||||||
|
|
|
@ -118,7 +118,7 @@
|
||||||
<h2><span class="badge badge-secondary mb-2">{{ date }}</span></h2>
|
<h2><span class="badge badge-secondary mb-2">{{ date }}</span></h2>
|
||||||
{% for mess in messages[date] %}
|
{% for mess in messages[date] %}
|
||||||
|
|
||||||
<div class="chat-message-left pb-0">
|
<div class="chat-message-left pb-1">
|
||||||
<div>
|
<div>
|
||||||
<img src="{{ url_for('static', filename='image/ail-icon.png') }}" class="rounded-circle mr-1" alt="{{ mess['user-account']['id'] }}" width="40" height="40">
|
<img src="{{ url_for('static', filename='image/ail-icon.png') }}" class="rounded-circle mr-1" alt="{{ mess['user-account']['id'] }}" width="40" height="40">
|
||||||
<div class="text-muted small text-nowrap mt-2">{{ mess['hour'] }}</div>
|
<div class="text-muted small text-nowrap mt-2">{{ mess['hour'] }}</div>
|
||||||
|
|
Loading…
Reference in New Issue