diff --git a/newsdaemon.py b/newsdaemon.py index 7a31d2a4..2147fc73 100644 --- a/newsdaemon.py +++ b/newsdaemon.py @@ -622,7 +622,7 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str, } blog['object']['tag'].append(newTag) hashtagHtml = \ - "#" + \ htId + "" diff --git a/newswire.py b/newswire.py index e044f8a1..cc2eb538 100644 --- a/newswire.py +++ b/newswire.py @@ -102,12 +102,13 @@ def addNewswireDictEntry(baseDir: str, domain: str, postTags = getNewswireTags(allText, maxTags) # combine the tags into a single list - for tag in postTags: - if tag not in tags: - tags.append(tag) + for tag in tags: + if tag not in postTags: + if len(postTags) < maxTags: + postTags.append(tag) # check that no tags are blocked - for tag in tags: + for tag in postTags: if isBlockedHashtag(baseDir, tag.replace('#', '')): return @@ -118,7 +119,7 @@ def addNewswireDictEntry(baseDir: str, domain: str, postFilename, description, moderated, - tags, + postTags, mirrored ]