From 4a1162005de3a67a90fb6a68166ba109abc56caa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Wed, 19 Oct 2016 17:38:30 -0500 Subject: [PATCH] Fix for displaying mentions in twishort replies --- src/sessionmanager/session.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sessionmanager/session.py b/src/sessionmanager/session.py index 0525e0a5..78fb2066 100644 --- a/src/sessionmanager/session.py +++ b/src/sessionmanager/session.py @@ -454,4 +454,8 @@ class Session(object): long = twishort.is_long(tweet) if long != False and config.app["app-settings"]["handle_longtweets"]: 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 \ No newline at end of file