Set article type

merge-requests/30/head
Bob Mottram 2021-02-10 18:13:41 +00:00
parent 1f124e9b5e
commit 2f5d270c3f
1 changed files with 2 additions and 1 deletions

View File

@ -1047,6 +1047,8 @@ def _createPostBase(baseDir: str, nickname: str, domain: str, port: int,
postObjectType = 'Note'
if eventUUID:
postObjectType = 'Event'
if isArticle:
postObjectType = 'Article'
if not clientToServer:
actorUrl = httpPrefix + '://' + domain + '/users/' + nickname
@ -1442,7 +1444,6 @@ def createBlogPost(baseDir: str,
inReplyTo, inReplyToAtomUri, subject,
schedulePost,
eventDate, eventTime, location, True)
blog['object']['type'] = 'Article'
# append citations tags, stored in a file
citationsFilename = \