mirror of https://gitlab.com/bashrc2/epicyon
Use full filename for post reject
parent
151fa8cab6
commit
f78fae4031
8
posts.py
8
posts.py
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue