main
Bob Mottram 2020-05-21 20:28:09 +01:00
parent ba88f72871
commit f5321084ff
1 changed files with 12 additions and 13 deletions

View File

@ -2576,7 +2576,6 @@ def createBoxIndexed(recentPostsCache: {},
postUrl = \
postFilename.replace('\n', '').replace('.json', '').strip()
postAdded = False
# is the post cached in memory?
if recentPostsCache.get('index'):
if postUrl in recentPostsCache['index']:
@ -2585,9 +2584,9 @@ def createBoxIndexed(recentPostsCache: {},
addPostStringToTimeline(url,
boxname, postsInBox,
boxActor)
postAdded = True
postsCtr += 1
continue
if not postAdded:
# read the post from file
fullPostFilename = \
locatePost(baseDir, nickname,