From a82f619e89548f066c12e706ee9e088ce6612c70 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Fri, 2 Dec 2022 18:12:24 +0100 Subject: [PATCH] Revert "fix unshare by getting recipients from Announce activity instead of Undo" This reverts commit dcd44ec3b68aa74a29bccb9115cf93aaad73b34a. --- app/boxes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/boxes.py b/app/boxes.py index 343811e..9e2123c 100644 --- a/app/boxes.py +++ b/app/boxes.py @@ -439,7 +439,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, announced_object.ap_object) + recipients = await _compute_recipients(db_session, outbox_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":