diff --git a/newsdaemon.py b/newsdaemon.py index 445f42b8..4366660c 100644 --- a/newsdaemon.py +++ b/newsdaemon.py @@ -51,7 +51,7 @@ def saveArrivedTime(baseDir: str, postFilename: str, arrived: str) -> None: def removeControlCharacters(content: str) -> str: - return content.replace('&8211;', '-') + return content.replace('&8211;', '-').replace('–', '-') def convertRSStoActivityPub(baseDir: str, httpPrefix: str, @@ -102,13 +102,13 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str, # add the off-site link to the description if rssDescription: - rssDescription = '

' + rssDescription + \ - '

' + \ - translate['Read more...'] + '
' + rssDescription += \ + '\n\n' + \ + translate['Read more...'] + '' else: - rssDescription = '

' + \ + rssDescription = \ '' + \ - translate['Read more...'] + '
' + translate['Read more...'] + '' followersOnly = False useBlurhash = False @@ -142,7 +142,6 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str, blog['object']['url'] = \ httpPrefix + '://' + domain + '/@news/' + statusNumber blog['object']['published'] = dateStr - blog['object']['content'] = rssDescription postId = newPostId.replace('/', '#')