index sent messages so that they appear in inbox

main
Bob Mottram 2020-02-28 14:51:44 +00:00
parent ccae33b315
commit 4ffd0685d8
2 changed files with 9 additions and 5 deletions

View File

@ -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+='<p class="rssfeed">'

View File

@ -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: