Remove follow suggestion on request

This commit is contained in:
Mouse Reeve
2021-10-04 13:14:32 -07:00
4 changed files with 31 additions and 0 deletions

17
bookwyrm/models/link.py Normal file
View File

@ -0,0 +1,17 @@
""" outlink data """
from .activitypub_mixin import CollectionItemMixin
from .base_model import BookWyrmModel
from . import fields
class Link(CollectionItemMixin, BookWyrmModel):
"""a link to a website"""
url = fields.CharField(max_length=255)
name = fields.CharField(max_length=255)
class FileLink(Link):
"""a link to a file"""
filetype = fields.CharField(max_length=5)
filetype_description = fields.CharField(max_length=100)