From 4d121adaa2484a0138a22df69039ed55cd6016fe Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Sat, 5 Nov 2022 20:15:40 -0400 Subject: [PATCH] forward all non-Follow undos --- relay/processors.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/relay/processors.py b/relay/processors.py index e35e14b..9377b65 100644 --- a/relay/processors.py +++ b/relay/processors.py @@ -87,13 +87,9 @@ async def handle_follow(actor, data, request): async def handle_undo(actor, data, request): - ## If the activity being undone is an Announce, forward it insteead - if data['object']['type'] == 'Announce': - await handle_forward(actor, data, request) - return - - elif data['object']['type'] != 'Follow': - return + ## If the object is not a Follow, forward it + if data['object']['type'] != 'Follow': + return await handle_forward(actor, data, request) database = app['database'] inbox = database.get_inbox(actor['id'])