From fa15218980939c28220e5dd8c4c9ecd8b78d0a8a Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 31 May 2022 13:55:46 -0700 Subject: [PATCH] Fixes query syntax --- bookwyrm/activitystreams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/activitystreams.py b/bookwyrm/activitystreams.py index b2ceb5e2f..496eb5550 100644 --- a/bookwyrm/activitystreams.py +++ b/bookwyrm/activitystreams.py @@ -304,7 +304,7 @@ def add_status_on_create_command(sender, instance, created): priority = LOW # don't add imported statuses to feeds - if models.ImportItem.objects.exists(linked_review=instance): + if models.ImportItem.objects.filter(linked_review=instance).exists(): return add_status_task.apply_async(