forked from indymedia/epicyon
Only create scheduled posts if there is a date and time given
parent
7d6b74e961
commit
9744db2339
6
posts.py
6
posts.py
|
@ -718,7 +718,11 @@ def createPostBase(baseDir: str,nickname: str,domain: str,port: int, \
|
||||||
if saveToFile:
|
if saveToFile:
|
||||||
outboxName='outbox'
|
outboxName='outbox'
|
||||||
if schedulePost:
|
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, \
|
savePostToBox(baseDir,httpPrefix,newPostId, \
|
||||||
nickname,domain,newPost,outboxName)
|
nickname,domain,newPost,outboxName)
|
||||||
return newPost
|
return newPost
|
||||||
|
|
Loading…
Reference in New Issue