Save all instance blogs to the news actor

main
Bob Mottram 2020-11-27 10:13:09 +00:00
parent 385ca80995
commit 1da5d5769d
1 changed files with 11 additions and 2 deletions

View File

@ -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 \