forked from indymedia/epicyon
Save all instance blogs to the news actor
parent
385ca80995
commit
1da5d5769d
13
outbox.py
13
outbox.py
|
@ -188,11 +188,20 @@ def postMessageToOutbox(messageJson: {}, postToNickname: str,
|
||||||
savePostToBox(baseDir,
|
savePostToBox(baseDir,
|
||||||
httpPrefix,
|
httpPrefix,
|
||||||
postId,
|
postId,
|
||||||
postToNickname,
|
postToNickname, domainFull,
|
||||||
domainFull, messageJson, outboxName)
|
messageJson, outboxName)
|
||||||
if not savedFilename:
|
if not savedFilename:
|
||||||
print('WARN: post not saved to outbox ' + outboxName)
|
print('WARN: post not saved to outbox ' + outboxName)
|
||||||
return False
|
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 \
|
if messageJson['type'] == 'Create' or \
|
||||||
messageJson['type'] == 'Question' or \
|
messageJson['type'] == 'Question' or \
|
||||||
messageJson['type'] == 'Note' or \
|
messageJson['type'] == 'Note' or \
|
||||||
|
|
Loading…
Reference in New Issue