Application activity

master
Bob Mottram 2019-08-23 21:09:00 +01:00
parent 223ec8c391
commit eaba779cc1
2 changed files with 3 additions and 0 deletions

View File

@ -660,6 +660,7 @@ def receiveUpdate(session,baseDir: str, \
return False
if messageJson['object']['type']=='Person' or \
messageJson['object']['type']=='Application' or \
messageJson['object']['type']=='Service':
if messageJson['object'].get('url') and messageJson['object'].get('id'):
print('Request to update actor: '+messageJson['actor'])

View File

@ -1342,6 +1342,7 @@ def sendToNamedAddresses(session,baseDir: str, \
if postJsonObject['object'].get('type') and postJsonObject.get('type'):
if postJsonObject['type']=='Update' and \
(postJsonObject['object']['type']=='Person' or \
postJsonObject['object']['type']=='Application' or \
postJsonObject['object']['type']=='Service'):
# use the original object, which has a 'to'
recipientsObject=postJsonObject
@ -1488,6 +1489,7 @@ def sendToFollowers(session,baseDir: str, \
if isinstance(postJsonObject['object'], dict):
if postJsonObject['object'].get('type'):
if postJsonObject['object']['type']=='Person' or \
postJsonObject['object']['type']=='Application' or \
postJsonObject['object']['type']=='Service':
print('Sending profile update to shared inbox of '+toDomain)
toNickname='inbox'