diff --git a/bookwyrm/models/activitypub_mixin.py b/bookwyrm/models/activitypub_mixin.py index 26ad7115..ce6245b2 100644 --- a/bookwyrm/models/activitypub_mixin.py +++ b/bookwyrm/models/activitypub_mixin.py @@ -241,10 +241,8 @@ class ObjectMixin(ActivitypubMixin): return # is this a deletion? - if ( - (hasattr(self, "deleted") and self.deleted) - or hasattr(self, "is_active") - and not self.is_active + if (hasattr(self, "deleted") and self.deleted) or ( + hasattr(self, "is_active") and not self.is_active ): activity = self.to_delete_activity(user) else: