Fix/imprive Undo support

This commit is contained in:
Thomas Sileo 2022-09-29 08:41:24 +02:00
parent 992cd55d7b
commit 572a84b4bd
3 changed files with 5 additions and 6 deletions

View file

@ -288,6 +288,7 @@ async def _send_undo(db_session: AsyncSession, ap_object_id: str) -> None:
raise ValueError("Should never happen")
outbox_object_to_undo.undone_by_outbox_object_id = outbox_object.id
outbox_object_to_undo.is_deleted = True
if outbox_object_to_undo.ap_type == "Follow":
if not outbox_object_to_undo.activity_object_ap_id: