Extra replace

main2
Bob Mottram 2019-11-01 10:19:21 +00:00
parent 273a8cd358
commit 9412c01223
1 changed files with 5 additions and 2 deletions

View File

@ -479,13 +479,16 @@ def createPostBase(baseDir: str,nickname: str, domain: str, port: int, \
# convert content to html # convert content to html
emojisDict={} emojisDict={}
# replace 's
content=content.replace("\ufffd\ufffd\ufffds","'s").replace("","'")
# add tags
content= \ content= \
addHtmlTags(baseDir,httpPrefix, \ addHtmlTags(baseDir,httpPrefix, \
nickname,domain,content, \ nickname,domain,content, \
mentionedRecipients, \ mentionedRecipients, \
hashtagsDict,True) hashtagsDict,True)
# replace 's
content=content.replace("\ufffd\ufffd\ufffds","'s")
statusNumber,published = getStatusNumber() statusNumber,published = getStatusNumber()
postTo='https://www.w3.org/ns/activitystreams#Public' postTo='https://www.w3.org/ns/activitystreams#Public'