mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-23 03:38:08 -06:00
Replies made with twishort should display user mentions properly
This commit is contained in:
parent
f7c334ad96
commit
c9161cd772
@ -455,4 +455,7 @@ 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"]:
|
||||||
|
if "@%s" % (i["screen_name"] not in tweet["message"]):
|
||||||
|
tweet["message"] = u"@%s %s" % (i["screen_name"], tweet["message"])
|
||||||
return tweet
|
return tweet
|
Loading…
Reference in New Issue
Block a user