Fix for displaying mentions in twishort replies

This commit is contained in:
Manuel Cortez 2016-10-19 17:38:30 -05:00
parent 72b4873dce
commit 4a1162005d

View File

@ -454,4 +454,8 @@ class Session(object):
long = twishort.is_long(tweet) long = twishort.is_long(tweet)
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)
mentions = ""
for i in tweet["entities"]["user_mentions"]:
mentions = mentions+"@{0} ".format(i["screen_name"],)
tweet["message"] = mentions+tweet["message"]
return tweet return tweet