Skip to content

Commit e7747c3

Browse files
committed
handle edge case in stream listener mentions
1 parent dd11f63 commit e7747c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/CollectorBot/listener.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ def __init__(self):
1212
super().__init__(**settings.TWITTER_SECRETS)
1313

1414
def on_status(self, status):
15+
if hasattr(status, 'extended_tweet') and status.extended_tweet.get('full_text'):
16+
status.text = status.extended_tweet.get('full_text')
1517
if 'collect' in status.text.lower().split(" "):
1618
add_status_to_queue.delay(status)
1719
logger.info(f"New mention added to worker queue")

0 commit comments

Comments
 (0)