From 9412c01223c293792b3325e1980fd99138182361 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 1 Nov 2019 10:19:21 +0000 Subject: [PATCH] Extra replace --- posts.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/posts.py b/posts.py index 51d0a5ad..716eaf0b 100644 --- a/posts.py +++ b/posts.py @@ -479,13 +479,16 @@ def createPostBase(baseDir: str,nickname: str, domain: str, port: int, \ # convert content to html emojisDict={} + + # replace 's + content=content.replace("\ufffd\ufffd\ufffds","'s").replace("’","'") + + # add tags content= \ addHtmlTags(baseDir,httpPrefix, \ nickname,domain,content, \ mentionedRecipients, \ hashtagsDict,True) - # replace 's - content=content.replace("\ufffd\ufffd\ufffds","'s") statusNumber,published = getStatusNumber() postTo='https://www.w3.org/ns/activitystreams#Public'