forked from indymedia/epicyon
Don't save upgrade activities
parent
9fd8ed4c2e
commit
60e8821d13
11
daemon.py
11
daemon.py
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue