From 3e8d2b3b38d2f2a92a4fb5b109ec0560ac502609 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 25 Aug 2020 15:43:13 +0100 Subject: [PATCH] Fix outbox for events --- outbox.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/outbox.py b/outbox.py index 805d24b3..f4a3b237 100644 --- a/outbox.py +++ b/outbox.py @@ -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 + \