From: Colin Watson Date: Sun, 1 Dec 2024 15:02:45 +0000 (+0000) Subject: fediverse: Fix URLs in output X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=a7ee680f6f2eaf155f21d3bd4077443cd78fac43;p=blog.git fediverse: Fix URLs in output --- diff --git a/fediverse/fediverse.py b/fediverse/fediverse.py index 40df3729..ee662608 100644 --- a/fediverse/fediverse.py +++ b/fediverse/fediverse.py @@ -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(' ',' '), url) cleantext = html.fromstring(htmltext)