forked from indymedia/epicyon
Check that post is located
parent
df7382af19
commit
bee236a44f
12
newswire.py
12
newswire.py
|
@ -219,6 +219,12 @@ def updateNewswireModerationQueue(baseDir: str, handle: str,
|
||||||
fullPostFilename = \
|
fullPostFilename = \
|
||||||
locatePost(baseDir, nickname,
|
locatePost(baseDir, nickname,
|
||||||
domain, postUrl, False)
|
domain, postUrl, False)
|
||||||
|
if not fullPostFilename:
|
||||||
|
print('Unable to locate post ' + postUrl)
|
||||||
|
ctr += 1
|
||||||
|
if ctr >= maxBlogsPerAccount:
|
||||||
|
break
|
||||||
|
|
||||||
moderationStatusFilename = fullPostFilename + '.moderate'
|
moderationStatusFilename = fullPostFilename + '.moderate'
|
||||||
moderationStatusStr = ''
|
moderationStatusStr = ''
|
||||||
if not os.path.isfile(moderationStatusFilename):
|
if not os.path.isfile(moderationStatusFilename):
|
||||||
|
@ -289,6 +295,12 @@ def addAccountBlogsToNewswire(baseDir: str, nickname: str, domain: str,
|
||||||
fullPostFilename = \
|
fullPostFilename = \
|
||||||
locatePost(baseDir, nickname,
|
locatePost(baseDir, nickname,
|
||||||
domain, postUrl, False)
|
domain, postUrl, False)
|
||||||
|
if not fullPostFilename:
|
||||||
|
print('Unable to locate post ' + postUrl)
|
||||||
|
ctr += 1
|
||||||
|
if ctr >= maxBlogsPerAccount:
|
||||||
|
break
|
||||||
|
|
||||||
postJsonObject = None
|
postJsonObject = None
|
||||||
if fullPostFilename:
|
if fullPostFilename:
|
||||||
postJsonObject = loadJson(fullPostFilename)
|
postJsonObject = loadJson(fullPostFilename)
|
||||||
|
|
Loading…
Reference in New Issue