1
0
Fork 0

Fixes generating new key paris for user

and the broadcast test
This commit is contained in:
Mouse Reeve 2020-11-30 19:33:50 -08:00
parent eb6206252d
commit fee5846aa8
5 changed files with 15 additions and 15 deletions

View file

@ -155,8 +155,6 @@ class User(OrderedCollectionPageMixin, AbstractUser):
self.inbox = '%s/inbox' % self.remote_id
self.shared_inbox = 'https://%s/inbox' % DOMAIN
self.outbox = '%s/outbox' % self.remote_id
if not self.key_pair:
self.key_pair = KeyPair.objects.create()
return super().save(*args, **kwargs)
@ -197,6 +195,9 @@ def execute_after_save(sender, instance, created, *args, **kwargs):
if not instance.local:
set_remote_server.delay(instance.id)
instance.key_pair = KeyPair.objects.create(
remote_id='%s/#main-key' % instance.remote_id)
shelves = [{
'name': 'To Read',
'identifier': 'to-read',