Start displaying the acor that liked a particular note

This commit is contained in:
Thomas Sileo
2018-06-03 23:11:43 +02:00
parent a160a95e82
commit 8027a36359
4 changed files with 43 additions and 9 deletions

View File

@@ -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: