From f78fae40313f98425e879d3cfe68feb6acb7db6b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 5 Mar 2021 19:29:09 +0000 Subject: [PATCH] Use full filename for post reject --- posts.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/posts.py b/posts.py index c85d4370e..de2c06953 100644 --- a/posts.py +++ b/posts.py @@ -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