From dcbede4f3594233925f813480ce25b95162400ba Mon Sep 17 00:00:00 2001 From: cquest Date: Fri, 24 Jan 2025 14:57:40 +0100 Subject: [PATCH] Replace "Source: xxx" by "(xxx)" --- tootbot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tootbot.py b/tootbot.py index f234b00..be6f1a9 100755 --- a/tootbot.py +++ b/tootbot.py @@ -265,7 +265,10 @@ if source[:4] == 'http': c = c + '…' if 'authors' in t: - c = c + '\nSource: ' + t.authors[0].name + c = c + ('\n(%s) ' % t.authors[0].name) + if 'ATEXO' in t.authors[0].name: + continue + c = c + '\n\n' + t.link # replace links to reddit by libreddit ones