mirror of https://gitlab.com/bashrc2/epicyon
Avoid duplicated replies
parent
fbb7ed2a53
commit
7d6a47d967
4
blog.py
4
blog.py
|
@ -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 = '>'
|
||||
|
|
Loading…
Reference in New Issue