From ecbbf79a9a246004cbadb3835fadc32f95798849 Mon Sep 17 00:00:00 2001
From: cquest <cquest@openstreetmap.fr>
Date: Thu, 8 Jun 2017 18:01:40 +0200
Subject: [PATCH] show retweets: RT xxxx

---
 tootbot.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tootbot.py b/tootbot.py
index a0fcf5e..fb5f889 100755
--- a/tootbot.py
+++ b/tootbot.py
@@ -70,9 +70,10 @@ for t in reversed(d.entries):
                 print("ERROR: First Login Failed!")
                 sys.exit(1)
 
-
         #h = BeautifulSoup(t.summary_detail.value, "html.parser")
         c = t.title
+        if t.author != '(%s)' % twitter:
+            c = ("RT %s\n" % t.author[1:-1]) + c
         toot_media = []
         # get the pictures...
         for p in re.finditer(r"https://pbs.twimg.com/[^ \xa0\"]*", t.summary):
-- 
GitLab