LocalPerson gains get_followers_collection() and get_following_collection(),

which are aliases for the followers and following properties.

This isn't elegant, but it makes the views easier. When we fix
issue 64, we should return to the question of these accessors
for Persons in general.
merge-requests/2/merge
Marnanel Thurman 2020-10-31 17:42:51 +00:00
rodzic 46e55a740a
commit dae5017e3d
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -613,6 +613,12 @@ class LocalPerson(Person):
rel_following__following = self,
)
def get_followers_collection(self):
return self.followers
def get_following_collection(self):
return self.following
@property
def inbox_url(self):
return uri_to_url(settings.KEPI['USER_INBOX_LINK'] % {