remote actor: force utf-8 encoding

This commit is contained in:
William Pitcock 2018-08-11 10:20:56 -05:00
parent 2b11d0522c
commit ba854d5971
1 changed files with 1 additions and 1 deletions

View File

@ -9,6 +9,6 @@ async def fetch_actor(uri, force=False):
async with aiohttp.ClientSession() as session: async with aiohttp.ClientSession() as session:
async with session.get(uri, headers={'Accept': 'application/activity+json'}) as resp: 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 DATABASE["actors"] = ACTORS
return ACTORS[uri] return ACTORS[uri]