User generated local paths
This commit is contained in:
parent
d821a08cff
commit
dc68fdd53e
14 changed files with 50 additions and 38 deletions
|
@ -179,6 +179,11 @@ class User(OrderedCollectionPageMixin, AbstractUser):
|
|||
|
||||
return super().save(*args, **kwargs)
|
||||
|
||||
@property
|
||||
def local_path(self):
|
||||
''' this model doesn't inherit bookwyrm model, so here we are '''
|
||||
return '/user/%s' % (self.localname or self.username)
|
||||
|
||||
|
||||
class KeyPair(ActivitypubMixin, BookWyrmModel):
|
||||
''' public and private keys for a user '''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue