From c0d55cebb0fc4062f3705d73fd1b1e5f5bdee884 Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Sat, 5 Nov 2022 20:10:01 -0400 Subject: [PATCH] cache activity id for forwards --- relay/processors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay/processors.py b/relay/processors.py index 2f8b351..e35e14b 100644 --- a/relay/processors.py +++ b/relay/processors.py @@ -38,7 +38,7 @@ async def handle_relay(actor, data, request): async def handle_forward(actor, data, request): cache = app['cache'].objects - object_id = misc.distill_object_id(data) + object_id = data['id'] if object_id in cache: logging.verbose(f'already forwarded {object_id}')