Moderated posts can be rejected

merge-requests/8/head
Bob Mottram 2020-10-06 13:33:53 +01:00
parent d0085e1c33
commit 3e666a4a91
1 changed files with 16 additions and 14 deletions

View File

@ -238,8 +238,10 @@ def updateNewswireModerationQueue(baseDir: str, handle: str,
# if the post is still in the moderation queue
if '[accepted]' not in \
open(moderationStatusFilename).read():
# load the post and add its details to the moderation queue
if '[rejected]' not in \
open(moderationStatusFilename).read():
# load the post and add its details to the
# moderation queue
postJsonObject = None
if fullPostFilename:
postJsonObject = loadJson(fullPostFilename)