chiark / gitweb /
fediverse: Fix URLs in output
authorColin Watson <cjwatson@debian.org>
Sun, 1 Dec 2024 15:02:45 +0000 (15:02 +0000)
committerColin Watson <cjwatson@debian.org>
Sun, 1 Dec 2024 15:02:45 +0000 (15:02 +0000)
fediverse/fediverse.py

index 40df372983ef3880494f0a2b25d20c0b3301f63f..ee662608c62c301e7a2711c5bbca01097bdd2716 100644 (file)
@@ -60,7 +60,7 @@ def post_on_mastodon(settings, new_posts):
    build_message = 'Publishing on Mastodon: %s (%s)'
 
    for article in new_posts:
-      url = article.get_siteurl() + article.url
+      url = article.get_siteurl() + '/' + article.url
       title = article.title
       htmltext = build_message % (title.replace('&nbsp;',' '), url)
       cleantext = html.fromstring(htmltext)