mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 08:56:10 +00:00
iframe-bot: Don't show tweets.
(imported from commit 584fdbfa50e2ff1d3526f741e96ef6691fa731e1)
This commit is contained in:
@@ -144,6 +144,9 @@ for msg in result['messages']:
|
||||
if msg['type'] != 'stream':
|
||||
# Don't show PMs the bot got
|
||||
continue
|
||||
if msg['sender_full_name'] == 'TwitterBot':
|
||||
# Don't put tweets in the iframe
|
||||
continue
|
||||
|
||||
uniwrite(f,'<div class="message">')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user