moviewyrm/bookwyrm/activitypub/interaction.py

21 lines
396 B
Python
Raw Normal View History

''' boosting and liking posts '''
from dataclasses import dataclass
from .base_activity import ActivityObject
@dataclass(init=False)
class Like(ActivityObject):
''' a user faving an object '''
actor: str
2020-11-05 00:28:32 +00:00
object: str
type: str = 'Like'
@dataclass(init=False)
class Boost(ActivityObject):
''' boosting a status '''
actor: str
2020-11-05 00:28:32 +00:00
object: str
type: str = 'Announce'