moviewyrm/bookwyrm/activitypub/image.py

12 lines
258 B
Python
Raw Normal View History

2020-11-28 01:58:21 +00:00
''' an image, nothing fancy '''
from dataclasses import dataclass
2020-11-28 04:11:22 +00:00
from .base_activity import ActivityObject
2020-11-28 01:58:21 +00:00
2020-11-28 04:11:22 +00:00
@dataclass(init=False)
class Image(ActivityObject):
2020-11-28 01:58:21 +00:00
''' image block '''
url: str
name: str = ''
type: str = 'Image'
2020-11-28 04:11:22 +00:00
id: str = ''