mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
Fixed error when parsing long tweets.
This commit is contained in:
parent
0065af2aef
commit
ee234b80a7
@ -388,7 +388,7 @@ class Session(base.baseSession):
|
|||||||
tweet.quoted_status.twishort = True
|
tweet.quoted_status.twishort = True
|
||||||
for i in tweet.quoted_status.entities["user_mentions"]:
|
for i in tweet.quoted_status.entities["user_mentions"]:
|
||||||
if "@%s" % (i["screen_name"]) not in tweet.quoted_status.message and i["screen_name"] != tweet.user.screen_name:
|
if "@%s" % (i["screen_name"]) not in tweet.quoted_status.message and i["screen_name"] != tweet.user.screen_name:
|
||||||
if hasattr(tweet["quoted_status"], "retweeted_status") and tweet.retweeted_status.user.screen_name == i["screen_name"]:
|
if hasattr(tweet.quoted_status, "retweeted_status") and tweet.retweeted_status.user.screen_name == i["screen_name"]:
|
||||||
continue
|
continue
|
||||||
tweet.quoted_status.message = u"@%s %s" % (i["screen_name"], tweet.message)
|
tweet.quoted_status.message = u"@%s %s" % (i["screen_name"], tweet.message)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user