diff --git a/newsdaemon.py b/newsdaemon.py index ade72823b..7aaa7befc 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