From a7bc6fa1a2776ecf7e07320b68455a7a8e20e22c Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Wed, 11 Jul 2018 22:00:18 +0200 Subject: [PATCH] Tweak the tasks --- activitypub.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/activitypub.py b/activitypub.py index f92769d..6c6372d 100644 --- a/activitypub.py +++ b/activitypub.py @@ -95,8 +95,9 @@ class MicroblogPubBackend(Backend): } ) - tasks.process_new_activity.delay(activity.id) tasks.cache_attachments(activity.id) + if box == Box.INBOX: + tasks.process_new_activity.delay(activity.id) @ensure_it_is_me def outbox_new(self, as_actor: ap.Person, activity: ap.BaseActivity) -> None: