Fixed hashtags error

This commit is contained in:
Maurizio Paglia 2023-05-13 15:24:00 +02:00 committed by GitHub
commit 0fdb907f1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@ def create_link_mastodon(title, url, content):
taglist = content.tags
new_taglist = []
for i in taglist:
new_taglist.append("#" + str(i))
new_taglist.append("%23" + str(i))
hashtags = " ".join(str(x).replace(" ", "") for x in new_taglist)
else:
hashtags = ""