mirror of https://gitlab.com/bashrc2/epicyon
Application activity
parent
223ec8c391
commit
eaba779cc1
1
inbox.py
1
inbox.py
|
@ -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'])
|
||||
|
|
2
posts.py
2
posts.py
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue