See #689: fetch nodeinfo when seing a domain for the first time

This commit is contained in:
Eliot Berriot 2019-04-11 11:25:17 +02:00
parent 84e2f0af9f
commit 5e3cc99f20
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
5 changed files with 25 additions and 4 deletions

View file

@ -151,6 +151,10 @@ class Domain(models.Model):
)
return data
@property
def is_local(self):
return self.name == settings.FEDERATION_HOSTNAME
class Actor(models.Model):
ap_type = "Actor"