remote actor: force utf-8 encoding
This commit is contained in:
parent
2b11d0522c
commit
ba854d5971
|
@ -9,6 +9,6 @@ async def fetch_actor(uri, force=False):
|
|||
|
||||
async with aiohttp.ClientSession() as session:
|
||||
async with session.get(uri, headers={'Accept': 'application/activity+json'}) as resp:
|
||||
ACTORS[uri] = (await resp.json(content_type=None))
|
||||
ACTORS[uri] = (await resp.json(encoding='utf-8', content_type=None))
|
||||
DATABASE["actors"] = ACTORS
|
||||
return ACTORS[uri]
|
||||
|
|
Loading…
Reference in a new issue