mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06:00
Fix for displaying mentions in twishort replies
This commit is contained in:
parent
72b4873dce
commit
4a1162005d
@ -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
|
Loading…
Reference in New Issue
Block a user