Use full filename for post reject

merge-requests/30/head
Bob Mottram 2021-03-05 19:29:09 +00:00
parent 151fa8cab6
commit f78fae4031
1 changed files with 4 additions and 4 deletions

View File

@ -3160,10 +3160,6 @@ def _createBoxIndexed(recentPostsCache: {},
if not postFilename: if not postFilename:
break break
# has the post been rejected?
if os.path.isfile(postFilename + '.reject'):
continue
# apply votes within this timeline # apply votes within this timeline
if newswireVotesThreshold > 0: if newswireVotesThreshold > 0:
# note that the presence of an arrival file also indicates # note that the presence of an arrival file also indicates
@ -3235,6 +3231,10 @@ def _createBoxIndexed(recentPostsCache: {},
locatePost(baseDir, nickname, locatePost(baseDir, nickname,
domain, postUrl, False) domain, postUrl, False)
if fullPostFilename: if fullPostFilename:
# has the post been rejected?
if os.path.isfile(fullPostFilename + '.reject'):
continue
if _addPostToTimeline(fullPostFilename, boxname, if _addPostToTimeline(fullPostFilename, boxname,
postsInBox, boxActor): postsInBox, boxActor):
postsAddedToTimeline += 1 postsAddedToTimeline += 1