Adds following field to actor serialization

This commit is contained in:
Mouse Reeve
2021-04-07 10:32:16 -07:00
parent 6209a7de5b
commit ef12b077dd
3 changed files with 24 additions and 2 deletions

View File

@ -112,6 +112,12 @@ class User(OrderedCollectionPageMixin, AbstractUser):
)
name_field = "username"
property_fields = [("following_link", "following")]
@property
def following_link(self):
""" just how to find out the following info """
return "{:s}/following".format(self.remote_id)
@property
def alt_text(self):