From 1da5d5769d59d953cda9271fc5e424d76686455a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 27 Nov 2020 10:13:09 +0000 Subject: [PATCH] Save all instance blogs to the news actor --- outbox.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/outbox.py b/outbox.py index 1329855a..02d364d9 100644 --- a/outbox.py +++ b/outbox.py @@ -188,11 +188,20 @@ def postMessageToOutbox(messageJson: {}, postToNickname: str, savePostToBox(baseDir, httpPrefix, postId, - postToNickname, - domainFull, messageJson, outboxName) + postToNickname, domainFull, + messageJson, outboxName) if not savedFilename: print('WARN: post not saved to outbox ' + outboxName) return False + + # save all instance blogs to the news actor + if postToNickname != 'news' and outboxName == 'tlblogs': + savePostToBox(baseDir, + httpPrefix, + postId, + 'news', domainFull, + messageJson, 'tblogs') + if messageJson['type'] == 'Create' or \ messageJson['type'] == 'Question' or \ messageJson['type'] == 'Note' or \