From 4ffd0685d8fb3d90298ba1eeaffc1fe9e5c4f2c7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 28 Feb 2020 14:51:44 +0000 Subject: [PATCH] index sent messages so that they appear in inbox --- blog.py | 2 +- outbox.py | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/blog.py b/blog.py index b4e87181..3ace8193 100644 --- a/blog.py +++ b/blog.py @@ -288,7 +288,7 @@ def htmlBlogPost(authorized: bool, \ htmlBlogPostContent(authorized,baseDir,httpPrefix,translate, \ nickname,domain,domainFull,postJsonObject, \ None,False) - + # show rss link iconsDir=getIconsDir(baseDir) blogStr+='

' diff --git a/outbox.py b/outbox.py index 92269ab6..4086997c 100644 --- a/outbox.py +++ b/outbox.py @@ -166,7 +166,7 @@ def postMessageToOutbox(messageJson: {},postToNickname: str, \ if messageJson['object'].get('type'): if messageJson['object']['type']=='Article': outboxName='tlblogs' - + savedFilename= \ savePostToBox(baseDir, \ httpPrefix, \ @@ -178,9 +178,13 @@ def postMessageToOutbox(messageJson: {},postToNickname: str, \ messageJson['type']=='Note' or \ messageJson['type']=='Article' or \ messageJson['type']=='Announce': - inboxUpdateIndex(outboxName,baseDir, \ - postToNickname+'@'+domain, \ - savedFilename,debug) + indexes=[outboxName,"inbox"] + for boxNameIndex in indexes: + if boxNameIndex=='inbox' and outboxName=='tlblogs': + continue + inboxUpdateIndex(boxNameIndex,baseDir, \ + postToNickname+'@'+domain, \ + savedFilename,debug) if outboxAnnounce(recentPostsCache, \ baseDir,messageJson,debug): if debug: