From fad4b7ce82f44ce2cd33acecf77e9e4e0bc324dc Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Mon, 19 Feb 2024 23:05:26 -0500 Subject: [PATCH] cache correct id for deletes --- relay/processors.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/relay/processors.py b/relay/processors.py index ff0d0af..824a975 100644 --- a/relay/processors.py +++ b/relay/processors.py @@ -43,8 +43,8 @@ async def handle_relay(view: ActorView, conn: Connection) -> None: async def handle_forward(view: ActorView, conn: Connection) -> None: try: - view.cache.get('handle-relay', view.message.object_id) - logging.verbose('already forwarded %s', view.message.object_id) + view.cache.get('handle-relay', view.message.id) + logging.verbose('already forwarded %s', view.message.id) return except KeyError: @@ -56,7 +56,7 @@ async def handle_forward(view: ActorView, conn: Connection) -> None: for inbox in conn.distill_inboxes(view.message): view.app.push_message(inbox, message, view.instance) - view.cache.set('handle-relay', view.message.object_id, message.id, 'str') + view.cache.set('handle-relay', view.message.id, message.id, 'str') async def handle_follow(view: ActorView, conn: Connection) -> None: