From 05d6f94eac954960a7b814dc939ea5093e1bb291 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Tue, 1 Oct 2024 14:21:00 +0100 Subject: [PATCH] Tweak Mastodon post formatting --- fediverse/fediverse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fediverse/fediverse.py b/fediverse/fediverse.py index 768e96ea..40df3729 100644 --- a/fediverse/fediverse.py +++ b/fediverse/fediverse.py @@ -110,8 +110,8 @@ def post_updates(generator, writer): title_to_publish = titlecleantext.text_content().strip() + '\n\n' articlehtmltext = article.summary articlecleantext = html.fromstring(articlehtmltext) - summary_to_publish = articlecleantext.text_content().strip() + '\n' - read_more = 'Read more... ' + article.get_siteurl() + '/' + article.url + '\n\n' + summary_to_publish = articlecleantext.text_content().strip() + '\n\n' + read_more = 'Blog post: ' + article.get_siteurl() + '/' + article.url + '\n\n' if False and hasattr(article, 'tags'): # cjwatson: my tags aren't sensible for fedi taglist = article.tags new_taglist = [] -- 2.30.2