Only show approved links

This commit is contained in:
Mouse Reeve
2022-01-09 20:30:23 -08:00
parent 70fe7e17af
commit aa9864a21e
6 changed files with 44 additions and 35 deletions

View File

@ -15,7 +15,7 @@ class Link(ActivitypubMixin, BookWyrmModel):
url = fields.URLField(max_length=255, activitypub_field="href")
domain = models.ForeignKey(
"LinkDomain", on_delete=models.PROTECT, null=True, blank=True
"LinkDomain", on_delete=models.CASCADE, null=True, blank=True
)
activity_serializer = activitypub.Link