1
0
Fork 0

user activitypub serializer

This commit is contained in:
Mouse Reeve 2020-05-09 21:55:00 -07:00
parent 45e5df388d
commit 67837f84b3
3 changed files with 5 additions and 5 deletions

View file

@ -73,6 +73,10 @@ class User(AbstractUser):
username = self.localname or self.username
return 'https://%s/%s/%s' % (DOMAIN, model_name, username)
@property
def activitypub_serialize(self):
return activitypub.get_actor(self)
class UserRelationship(FedireadsModel):
''' many-to-many through table for followers '''