Fix two previous commits

This commit is contained in:
Tulir Asokan
2018-02-06 14:23:06 +02:00
parent 9145ebdc64
commit ff703c2827
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -218,7 +218,8 @@ def telegram_event_to_matrix(evt, source):
+ f"<blockquote>{html}</blockquote>")
if evt.reply_to_msg_id:
msg = DBMessage.query.get((evt.reply_to_msg_id, source.tgid))
space = evt.to_id.channel_id if isinstance(evt, Message) and isinstance(evt.to_id, PeerChannel) else source.tgid
msg = DBMessage.query.get((evt.reply_to_msg_id, space))
if msg:
quote = f"<a href=\"https://matrix.to/#/{msg.mx_room}/{msg.mxid}\">Quote<br></a>"
if html: