Only create scheduled posts if there is a date and time given

merge-requests/6/head
Bob Mottram 2020-01-12 12:50:52 +00:00
parent 7d6b74e961
commit 9744db2339
1 changed files with 5 additions and 1 deletions

View File

@ -718,7 +718,11 @@ def createPostBase(baseDir: str,nickname: str,domain: str,port: int, \
if saveToFile:
outboxName='outbox'
if schedulePost:
outboxName='scheduled'
if eventDate and eventTime:
outboxName='scheduled'
else:
print('Unable to create scheduled post without date and time values')
return newPost
savePostToBox(baseDir,httpPrefix,newPostId, \
nickname,domain,newPost,outboxName)
return newPost