1
0
Fork 0

Reject statuses from deactivated remote users

This commit is contained in:
Mouse Reeve 2021-04-17 17:55:22 -07:00
parent b53c2c2196
commit 02e6602a0b
5 changed files with 43 additions and 5 deletions

View file

@ -145,6 +145,11 @@ class User(OrderedCollectionPageMixin, AbstractUser):
return self.name
return self.localname or self.username
@property
def deleted(self):
""" for consistent naming """
return not self.is_active
activity_serializer = activitypub.Person
@classmethod