mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-29 22:23:12 -06:00
Fixed another bug in check_long_tweet
This commit is contained in:
parent
8197f0c0d9
commit
20aaa39bc9
@ -455,9 +455,12 @@ class Session(object):
|
|||||||
if long != False and config.app["app-settings"]["handle_longtweets"]:
|
if long != False and config.app["app-settings"]["handle_longtweets"]:
|
||||||
tweet["message"] = twishort.get_full_text(long)
|
tweet["message"] = twishort.get_full_text(long)
|
||||||
tweet["twishort"] = True
|
tweet["twishort"] = True
|
||||||
for i in tweet["entities"]["user_mentions"]:
|
try:
|
||||||
if "@%s" % (i["screen_name"] not in tweet["message"]) and i["screen_name"] != tweet["user"]["screen_name"]:
|
for i in tweet["entities"]["user_mentions"]:
|
||||||
if tweet.has_key("retweeted_status") and tweet["retweeted_status"]["user"]["screen_name"] == i["screen_name"]:
|
if "@%s" % (i["screen_name"] not in tweet["message"]) and i["screen_name"] != tweet["user"]["screen_name"]:
|
||||||
continue
|
if tweet.has_key("retweeted_status") and tweet["retweeted_status"]["user"]["screen_name"] == i["screen_name"]:
|
||||||
tweet["message"] = u"@%s %s" % (i["screen_name"], tweet["message"])
|
continue
|
||||||
|
tweet["message"] = u"@%s %s" % (i["screen_name"], tweet["message"])
|
||||||
|
except TypeError:
|
||||||
|
pass
|
||||||
return tweet
|
return tweet
|
Loading…
Reference in New Issue
Block a user