mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-14 12:16:31 +00:00
20 lines
396 B
Python
20 lines
396 B
Python
''' 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
|
|
object: str
|
|
type: str = 'Like'
|
|
|
|
|
|
@dataclass(init=False)
|
|
class Boost(ActivityObject):
|
|
''' boosting a status '''
|
|
actor: str
|
|
object: str
|
|
type: str = 'Announce'
|