Only show approved links
This commit is contained in:
parent
70fe7e17af
commit
aa9864a21e
6 changed files with 44 additions and 35 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue