Start displaying the acor that liked a particular note
This commit is contained in:
@@ -246,9 +246,6 @@ class BaseActivity(object):
|
||||
raise ValueError('Invalid actor')
|
||||
return actor['id']
|
||||
|
||||
def reset_object_cache(self) -> None:
|
||||
self.__obj = None
|
||||
|
||||
def get_object(self) -> 'BaseActivity':
|
||||
if self.__obj:
|
||||
return self.__obj
|
||||
@@ -264,9 +261,12 @@ class BaseActivity(object):
|
||||
|
||||
p = parse_activity(obj)
|
||||
|
||||
self.__obj: BaseActivity = p
|
||||
self.__obj: Optional[BaseActivity] = p
|
||||
return p
|
||||
|
||||
def reset_object_cache(self) -> None:
|
||||
self.__obj = None
|
||||
|
||||
def to_dict(self, embed: bool = False, embed_object_id_only: bool = False) -> ObjectType:
|
||||
data = dict(self._data)
|
||||
if embed:
|
||||
|
Reference in New Issue
Block a user