Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
f25faec108 | ||
|
2750658c3c |
@@ -10,7 +10,7 @@ from __future__ import unicode_literals
|
||||
from .client import *
|
||||
|
||||
__title__ = 'fbchat'
|
||||
__version__ = '1.6.0'
|
||||
__version__ = '1.6.1'
|
||||
__description__ = 'Facebook Chat (Messenger) for Python'
|
||||
|
||||
__copyright__ = 'Copyright 2015 - 2019 by Taehoon Kim'
|
||||
|
@@ -168,7 +168,7 @@ def graphql_to_extensible_attachment(a):
|
||||
url=story['url'],
|
||||
original_url=get_url_parameter(story['url'], 'u') if "/l.php?u=" in story['url'] else story['url'],
|
||||
title=story['title_with_entities'].get('text'),
|
||||
description=story['description'].get('text'),
|
||||
description=story['description'].get('text') if story.get('description') else None,
|
||||
source=story['source']['text'],
|
||||
image_url=story['media']['image']['uri'] if story.get('media') else None,
|
||||
original_image_url=(get_url_parameter(story['media']['image']['uri'], 'url') if "/safe_image.php" in story['media']['image']['uri'] else story['media']['image']['uri']) if story.get('media') else None,
|
||||
|
Reference in New Issue
Block a user