Don't save upgrade activities

main2
Bob Mottram 2019-11-07 20:12:43 +00:00
parent 9fd8ed4c2e
commit 60e8821d13
1 changed files with 6 additions and 5 deletions

View File

@ -460,11 +460,12 @@ class PubServer(BaseHTTPRequestHandler):
if self.server.debug:
pprint(messageJson)
print('DEBUG: savePostToBox')
savePostToBox(self.server.baseDir, \
self.server.httpPrefix, \
postId, \
self.postToNickname, \
self.server.domainFull,messageJson,'outbox')
if messageJson['type']!='Upgrade':
savePostToBox(self.server.baseDir, \
self.server.httpPrefix, \
postId, \
self.postToNickname, \
self.server.domainFull,messageJson,'outbox')
if outboxAnnounce(self.server.baseDir,messageJson,self.server.debug):
if self.server.debug:
print('DEBUG: Updated announcements (shares) collection for the post associated with the Announce activity')