diff --git a/newsdaemon.py b/newsdaemon.py index ade72823..7aaa7bef 100644 --- a/newsdaemon.py +++ b/newsdaemon.py @@ -223,7 +223,7 @@ def newswireHashtagProcessing(session, baseDir: str, postJsonObject: {}, 'type': 'Hashtag' } hashtagHtml = \ - "#" + \ htId + "" @@ -253,8 +253,9 @@ def newswireHashtagProcessing(session, baseDir: str, postJsonObject: {}, htId + "" content = postJsonObject['object']['content'] if hashtagHtml in content: - postJsonObject['object']['content'] = \ - content.replace(hashtagHtml, '') + content = \ + content.replace(hashtagHtml, '').replace(' ', ' ') + postJsonObject['object']['content'] = content del postJsonObject['object']['tag'][htId] actionOccurred = True