From cb0c0a56a79d2945f449de09db7c2d4993513dbb Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 29 Jul 2018 18:23:29 +0200 Subject: [PATCH] Fix the delete --- tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index 09713ea..21b10d3 100644 --- a/tasks.py +++ b/tasks.py @@ -339,6 +339,8 @@ def finish_post_to_outbox(self, iri: str) -> None: activity = ap.fetch_remote_activity(iri) log.info(f"activity={activity!r}") + recipients = activity.recipients() + if activity.has_type(ap.ActivityType.DELETE): back.outbox_delete(MY_PERSON, activity) elif activity.has_type(ap.ActivityType.UPDATE): @@ -358,7 +360,6 @@ def finish_post_to_outbox(self, iri: str) -> None: elif obj.has_type(ap.ActivityType.FOLLOW): back.undo_new_following(MY_PERSON, obj) - recipients = activity.recipients() log.info(f"recipients={recipients}") activity = ap.clean_activity(activity.to_dict())