From dcd44ec3b68aa74a29bccb9115cf93aaad73b34a Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 26 Nov 2022 19:48:05 +0100 Subject: [PATCH] fix unshare by getting recipients from Announce activity instead of Undo --- app/boxes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/boxes.py b/app/boxes.py index 41987a6..443f608 100644 --- a/app/boxes.py +++ b/app/boxes.py @@ -427,7 +427,7 @@ async def _send_undo(db_session: AsyncSession, ap_object_id: str) -> None: announced_object.announced_via_outbox_object_ap_id = None # Send the Undo to the original recipients - recipients = await _compute_recipients(db_session, outbox_object.ap_object) + recipients = await _compute_recipients(db_session, announced_object.ap_object) for rcp in recipients: await new_outgoing_activity(db_session, rcp, outbox_object.id) elif outbox_object_to_undo.ap_type == "Block":