From 9e5772855dd24e077551e20817b4f90ba7dd9ad5 Mon Sep 17 00:00:00 2001 From: kjwon15 Date: Mon, 3 Jun 2019 18:48:32 +0900 Subject: [PATCH] Handle "Update" event to forward update profile --- relay/actor.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/relay/actor.py b/relay/actor.py index b2117fd..7f3bfd1 100644 --- a/relay/actor.py +++ b/relay/actor.py @@ -209,7 +209,7 @@ async def handle_relay(actor, data, request): 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) logging.debug('>> Relay %r', data) @@ -281,9 +281,10 @@ async def handle_undo(actor, data, request): processors = { 'Announce': handle_relay, 'Create': handle_relay, - 'Delete': handle_delete, + 'Delete': handle_forward, 'Follow': handle_follow, - 'Undo': handle_undo + 'Undo': handle_undo, + 'Update': handle_forward, }