From f721f7a1b95d2bde22ad2a40e1daf87b170bfa1e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 11 Oct 2020 12:00:28 +0100 Subject: [PATCH] Unquote --- newsdaemon.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/newsdaemon.py b/newsdaemon.py index 515c779d7..1bcef2b0f 100644 --- a/newsdaemon.py +++ b/newsdaemon.py @@ -110,16 +110,14 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str, newswire[originalDateStr][3] = filename continue - # rssTitle = removeControlCharacters(item[0]) - rssTitle = item[0] + rssTitle = removeControlCharacters(item[0]) url = item[1] if dangerousMarkup(url) or dangerousMarkup(rssTitle): continue rssDescription = '' # get the rss description if it exists - # rssDescription = removeControlCharacters(item[4]) - rssDescription = item[4] + rssDescription = removeControlCharacters(item[4]) if rssDescription.startswith('', '') @@ -147,10 +145,10 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str, # published time), so we change that later blog = createNewsPost(baseDir, domain, port, httpPrefix, - urllib.parse.quote(rssDescription), + rssDescription, followersOnly, False, None, None, None, useBlurhash, - urllib.parse.quote(rssTitle)) + rssTitle) if not blog: continue