From 1d1f8e7cf579ae9ee2f57aac3e282c00f7248b6d Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 29 Jul 2018 16:58:25 +0200 Subject: [PATCH] More bugfixes --- tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index 6de6575..09713ea 100644 --- a/tasks.py +++ b/tasks.py @@ -275,13 +275,14 @@ def post_to_inbox(activity: ap.BaseActivity) -> None: log.info( f"actor {actor!r} is blocked, dropping the received activity {activity!r}" ) - return + return if back.inbox_check_duplicate(MY_PERSON, activity.id): # The activity is already in the inbox log.info(f"received duplicate activity {activity!r}, dropping it") back.save(Box.INBOX, activity) + log.info(f"spawning task for {activity!r}") finish_post_to_inbox.delay(activity.id)