Avoid duplicated replies

main
Bob Mottram 2020-05-18 17:12:57 +01:00
parent fbb7ed2a53
commit 7d6a47d967
1 changed files with 5 additions and 3 deletions

View File

@ -131,9 +131,11 @@ def getBlogReplies(baseDir: str, httpPrefix: str, translate: {},
continue
with open(postFilename, "r") as postFile:
repliesStr += postFile.read() + '\n'
repliesStr += getBlogReplies(baseDir, httpPrefix, translate,
rply = getBlogReplies(baseDir, httpPrefix, translate,
nickname, domain, domainFull,
replyPostId, depth+1)
if rply not in repliesStr:
repliesStr += rply
# indicate the reply indentation level
indentStr = '>'