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

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]