From 4c298025f4ae9611395e78e2d0cf667a944059a2 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 11 Jul 2019 14:46:12 +0100 Subject: [PATCH] Add replies section to posts --- posts.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/posts.py b/posts.py index 7cb84550..640bfd63 100644 --- a/posts.py +++ b/posts.py @@ -385,15 +385,15 @@ def createPostBase(baseDir: str,nickname: str, domain: str, port: int, \ }, 'attachment': [], 'tag': [], - 'replies': {} - # 'id': 'https://'+domain+'/users/'+nickname+'/statuses/'+statusNumber+'/replies', - # 'type': 'Collection', - # 'first': { - # 'type': 'CollectionPage', - # 'partOf': 'https://'+domain+'/users/'+nickname+'/statuses/'+statusNumber+'/replies', - # 'items': [] - # } - #} + 'replies': { + 'id': 'https://'+domain+'/users/'+nickname+'/statuses/'+statusNumber+'/replies', + 'type': 'Collection', + 'first': { + 'type': 'CollectionPage', + 'partOf': 'https://'+domain+'/users/'+nickname+'/statuses/'+statusNumber+'/replies', + 'items': [] + } + } } } else: