From: Colin Watson Date: Tue, 1 Oct 2024 13:21:00 +0000 (+0100) Subject: Tweak Mastodon post formatting X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=05d6f94eac954960a7b814dc939ea5093e1bb291;p=blog.git Tweak Mastodon post formatting --- 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 = []