2021-03-08 16:49:10 +00:00
|
|
|
""" connections to external ActivityPub servers """
|
2020-09-17 20:09:11 +00:00
|
|
|
from django.db import models
|
2020-09-21 15:16:34 +00:00
|
|
|
from .base_model import BookWyrmModel
|
2020-09-17 20:09:11 +00:00
|
|
|
|
|
|
|
|
2020-09-21 15:16:34 +00:00
|
|
|
class FederatedServer(BookWyrmModel):
|
2021-03-08 16:49:10 +00:00
|
|
|
""" store which server's we federate with """
|
|
|
|
|
2020-09-17 20:09:11 +00:00
|
|
|
server_name = models.CharField(max_length=255, unique=True)
|
|
|
|
# federated, blocked, whatever else
|
2021-03-08 16:49:10 +00:00
|
|
|
status = models.CharField(max_length=255, default="federated")
|
2020-09-21 15:10:37 +00:00
|
|
|
# is it mastodon, bookwyrm, etc
|
2020-09-17 20:09:11 +00:00
|
|
|
application_type = models.CharField(max_length=255, null=True)
|
|
|
|
application_version = models.CharField(max_length=255, null=True)
|
|
|
|
|
2021-03-08 16:49:10 +00:00
|
|
|
|
2020-09-17 20:09:11 +00:00
|
|
|
# TODO: blocked servers
|