Check that post was saved to outbox

main
Bob Mottram 2020-08-25 21:20:56 +01:00
parent 38f4c6e66a
commit 0bc77af81d
1 changed files with 5 additions and 0 deletions

View File

@ -188,6 +188,9 @@ def postMessageToOutbox(messageJson: {}, postToNickname: str,
postId,
postToNickname,
domainFull, messageJson, outboxName)
if not savedFilename:
print('WARN: post not saved to outbox ' + outboxName)
return False
if messageJson['type'] == 'Create' or \
messageJson['type'] == 'Question' or \
messageJson['type'] == 'Note' or \
@ -200,6 +203,8 @@ def postMessageToOutbox(messageJson: {}, postToNickname: str,
selfActor = \
httpPrefix + '://' + domainFull + '/users/' + postToNickname
for boxNameIndex in indexes:
if not boxNameIndex:
continue
if boxNameIndex == 'inbox' and outboxName == 'tlblogs':
continue
# avoid duplicates of the message if already going