Reject statuses from deactivated remote users
This commit is contained in:
parent
b53c2c2196
commit
02e6602a0b
5 changed files with 43 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue