chiark / gitweb /
Tweak Mastodon post formatting
authorColin Watson <cjwatson@debian.org>
Tue, 1 Oct 2024 13:21:00 +0000 (14:21 +0100)
committerColin Watson <cjwatson@debian.org>
Tue, 1 Oct 2024 13:21:00 +0000 (14:21 +0100)
fediverse/fediverse.py

index 768e96ea63bd113aa57a14def2bc2ad809f77771..40df372983ef3880494f0a2b25d20c0b3301f63f 100644 (file)
@@ -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 = []