Update inbox and outbox

main
Bob Mottram 2021-09-03 19:22:27 +01:00
parent d932b75094
commit a80aa22a21
1 changed files with 5 additions and 3 deletions

View File

@ -6743,9 +6743,11 @@ class PubServer(BaseHTTPRequestHandler):
self.postToNickname, domainFull,
announceJson, 'outbox')
# also copy the post id to the inbox index
inboxUpdateIndex('inbox', baseDir,
self.postToNickname + '@' + domain,
announceFilename, debug)
indexes = ['outbox', 'inbox']
for boxNameIndex in indexes:
inboxUpdateIndex(boxNameIndex, baseDir,
self.postToNickname + '@' + domain,
announceFilename, debug)
# clear the icon from the cache so that it gets updated
if self.server.iconsCache.get('repeat.png'):