Getting instance actor file

merge-requests/30/head
Bob Mottram 2022-02-04 17:28:14 +00:00
parent eaabd93bae
commit 800464d895
1 changed files with 2 additions and 0 deletions

View File

@ -695,6 +695,8 @@ def save_json(json_object: {}, filename: str) -> bool:
def load_json(filename: str, delay_sec: int = 2, max_tries: int = 5) -> {}:
"""Makes a few attempts to load a json formatted file
"""
if '/Actor@' in filename:
filename = filename.replace('/Actor@', '/inbox@')
json_object = None
tries = 0
while tries < max_tries: