kopia lustrzana https://gitlab.com/marnanel/chapeau
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
rodzic
f5e040d746
commit
e09abfa356
|
@ -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:
|
||||
|
|
Ładowanie…
Reference in New Issue