PoC with receiving /ping from Mastodon and replying pong

This commit is contained in:
Eliot Berriot 2018-04-02 18:07:46 +02:00
commit a252051351
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
6 changed files with 196 additions and 12 deletions

View file

@ -38,3 +38,7 @@ class Actor(models.Model):
self.preferred_username,
settings.FEDERATION_HOSTNAME,
)
@property
def private_key_id(self):
return '{}#main-key'.format(self.url)