user activitypub serializer
This commit is contained in:
parent
45e5df388d
commit
67837f84b3
3 changed files with 5 additions and 5 deletions
|
@ -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 '''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue