From 2f5d270c3f2d25bda71f1dd063e63a03fd5bb0d7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 10 Feb 2021 18:13:41 +0000 Subject: [PATCH] Set article type --- posts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/posts.py b/posts.py index 4e3c2dc5e..df27ed6f8 100644 --- a/posts.py +++ b/posts.py @@ -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 = \