forked from indymedia/epicyon
Fix outbox for events
parent
a0f973d0de
commit
3e8d2b3b38
|
@ -179,8 +179,6 @@ def postMessageToOutbox(messageJson: {}, postToNickname: str,
|
||||||
if messageJson['object'].get('type'):
|
if messageJson['object'].get('type'):
|
||||||
if messageJson['object']['type'] == 'Article':
|
if messageJson['object']['type'] == 'Article':
|
||||||
outboxName = 'tlblogs'
|
outboxName = 'tlblogs'
|
||||||
elif messageJson['object']['type'] == 'Event':
|
|
||||||
outboxName = 'tlevents'
|
|
||||||
|
|
||||||
savedFilename = \
|
savedFilename = \
|
||||||
savePostToBox(baseDir,
|
savePostToBox(baseDir,
|
||||||
|
@ -198,8 +196,7 @@ def postMessageToOutbox(messageJson: {}, postToNickname: str,
|
||||||
messageJson['type'] == 'Announce':
|
messageJson['type'] == 'Announce':
|
||||||
indexes = [outboxName, "inbox"]
|
indexes = [outboxName, "inbox"]
|
||||||
for boxNameIndex in indexes:
|
for boxNameIndex in indexes:
|
||||||
if ((boxNameIndex == 'inbox') and
|
if boxNameIndex == 'inbox' and outboxName == 'tlblogs':
|
||||||
(outboxName == 'tlblogs' or outboxName == 'tlevents')):
|
|
||||||
continue
|
continue
|
||||||
selfActor = \
|
selfActor = \
|
||||||
httpPrefix + '://' + domainFull + \
|
httpPrefix + '://' + domainFull + \
|
||||||
|
|
Loading…
Reference in New Issue