mirror of https://gitlab.com/bashrc2/epicyon
Check that post was saved to outbox
parent
38f4c6e66a
commit
0bc77af81d
|
@ -188,6 +188,9 @@ def postMessageToOutbox(messageJson: {}, postToNickname: str,
|
||||||
postId,
|
postId,
|
||||||
postToNickname,
|
postToNickname,
|
||||||
domainFull, messageJson, outboxName)
|
domainFull, messageJson, outboxName)
|
||||||
|
if not savedFilename:
|
||||||
|
print('WARN: post not saved to outbox ' + outboxName)
|
||||||
|
return False
|
||||||
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 \
|
||||||
|
@ -200,6 +203,8 @@ def postMessageToOutbox(messageJson: {}, postToNickname: str,
|
||||||
selfActor = \
|
selfActor = \
|
||||||
httpPrefix + '://' + domainFull + '/users/' + postToNickname
|
httpPrefix + '://' + domainFull + '/users/' + postToNickname
|
||||||
for boxNameIndex in indexes:
|
for boxNameIndex in indexes:
|
||||||
|
if not boxNameIndex:
|
||||||
|
continue
|
||||||
if boxNameIndex == 'inbox' and outboxName == 'tlblogs':
|
if boxNameIndex == 'inbox' and outboxName == 'tlblogs':
|
||||||
continue
|
continue
|
||||||
# avoid duplicates of the message if already going
|
# avoid duplicates of the message if already going
|
||||||
|
|
Loading…
Reference in New Issue