Clarifies logic in if statement

This commit is contained in:
Mouse Reeve 2021-04-17 15:14:23 -07:00
parent 44528eaa09
commit 8421a2e832

View file

@ -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: