chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2576528
)
fediverse: Fix URLs in output
author
Colin Watson
<cjwatson@debian.org>
Sun, 1 Dec 2024 15:02:45 +0000
(15:02 +0000)
committer
Colin Watson
<cjwatson@debian.org>
Sun, 1 Dec 2024 15:02:45 +0000
(15:02 +0000)
fediverse/fediverse.py
patch
|
blob
|
history
diff --git
a/fediverse/fediverse.py
b/fediverse/fediverse.py
index 40df372983ef3880494f0a2b25d20c0b3301f63f..ee662608c62c301e7a2711c5bbca01097bdd2716 100644
(file)
--- 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)