main
Bob Mottram 2020-10-07 23:29:05 +01:00
parent 0e370f2229
commit 9e802d52eb
1 changed files with 10 additions and 9 deletions

View File

@ -1182,11 +1182,12 @@ def createBlogPost(baseDir: str,
inReplyTo=None, inReplyToAtomUri=None, subject=None, inReplyTo=None, inReplyToAtomUri=None, subject=None,
schedulePost=False, schedulePost=False,
eventDate=None, eventTime=None, location=None) -> {}: eventDate=None, eventTime=None, location=None) -> {}:
commentsEnabled = True
blog = \ blog = \
createPublicPost(baseDir, createPublicPost(baseDir,
nickname, domain, port, httpPrefix, nickname, domain, port, httpPrefix,
content, followersOnly, saveToFile, content, followersOnly, saveToFile,
clientToServer, clientToServer, commentsEnabled,
attachImageFilename, mediaType, attachImageFilename, mediaType,
imageDescription, useBlurhash, imageDescription, useBlurhash,
inReplyTo, inReplyToAtomUri, subject, inReplyTo, inReplyToAtomUri, subject,
@ -1211,14 +1212,14 @@ def createNewsPost(baseDir: str,
location = None location = None
blog = \ blog = \
createPublicPost(baseDir, createPublicPost(baseDir,
'news', domain, port, httpPrefix, 'news', domain, port, httpPrefix,
content, followersOnly, saveToFile, content, followersOnly, saveToFile,
clientToServer, False, clientToServer, False,
attachImageFilename, mediaType, attachImageFilename, mediaType,
imageDescription, useBlurhash, imageDescription, useBlurhash,
inReplyTo, inReplyToAtomUri, subject, inReplyTo, inReplyToAtomUri, subject,
schedulePost, schedulePost,
eventDate, eventTime, location) eventDate, eventTime, location)
blog['object']['type'] = 'Article' blog['object']['type'] = 'Article'
return blog return blog