Handle "Update" event to forward update profile

This commit is contained in:
kjwon15 2019-06-03 18:48:32 +09:00
parent f34b42ae78
commit 9e5772855d
1 changed files with 4 additions and 3 deletions

View File

@ -209,7 +209,7 @@ async def handle_relay(actor, data, request):
CACHE[object_id] = activity_id CACHE[object_id] = activity_id
async def handle_delete(actor, data, request): async def handle_forward(actor, data, request):
object_id = distill_object_id(data) object_id = distill_object_id(data)
logging.debug('>> Relay %r', data) logging.debug('>> Relay %r', data)
@ -281,9 +281,10 @@ async def handle_undo(actor, data, request):
processors = { processors = {
'Announce': handle_relay, 'Announce': handle_relay,
'Create': handle_relay, 'Create': handle_relay,
'Delete': handle_delete, 'Delete': handle_forward,
'Follow': handle_follow, 'Follow': handle_follow,
'Undo': handle_undo 'Undo': handle_undo,
'Update': handle_forward,
} }