The "inbox" collection property of LocalPerson is renamed to "inbox_collection".

This is for consistency with "inbox" for RemotePerson, which is merely the URL.

At some point it will need to be "get_inbox_collection", but that will
make it visible via ActivityPub and we need to make sure permissions are checked.
status-serialisers
Marnanel Thurman 2020-09-10 23:23:05 +01:00
rodzic f5e040d746
commit e09abfa356
1 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -417,9 +417,15 @@ class LocalPerson(Person):
@property
def inbox(self):
return uri_to_url(settings.KEPI['USER_INBOX_LINK'] % {
'username': self.local_user.username,
})
@property
def inbox_collection(self):
"""
Returns a QuerySet representing the user's inbox.
(This will be called "inbox" rather than "get_inbox_collection"
(This will be called "inbox_collection" rather than "get_inbox_collection"
until we can be sure it's not world-accessible from ActivityPub)
Your inbox contains: