Use full filename for post reject

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