Fix outbox for events

main
Bob Mottram 2020-08-25 15:43:13 +01:00
parent a0f973d0de
commit 3e8d2b3b38
1 changed files with 1 additions and 4 deletions

View File

@ -179,8 +179,6 @@ def postMessageToOutbox(messageJson: {}, postToNickname: str,
if messageJson['object'].get('type'):
if messageJson['object']['type'] == 'Article':
outboxName = 'tlblogs'
elif messageJson['object']['type'] == 'Event':
outboxName = 'tlevents'
savedFilename = \
savePostToBox(baseDir,
@ -198,8 +196,7 @@ def postMessageToOutbox(messageJson: {}, postToNickname: str,
messageJson['type'] == 'Announce':
indexes = [outboxName, "inbox"]
for boxNameIndex in indexes:
if ((boxNameIndex == 'inbox') and
(outboxName == 'tlblogs' or outboxName == 'tlevents')):
if boxNameIndex == 'inbox' and outboxName == 'tlblogs':
continue
selfActor = \
httpPrefix + '://' + domainFull + \