From dc3412d358a12aa53358e6d3a0c59f26fb3e1209 Mon Sep 17 00:00:00 2001 From: Jason Robinson Date: Sun, 17 Mar 2019 04:09:15 +0200 Subject: [PATCH] Try fix delivery via AP by encoding payload --- federation/outbound.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/federation/outbound.py b/federation/outbound.py index 20961e0..5748ff5 100644 --- a/federation/outbound.py +++ b/federation/outbound.py @@ -108,7 +108,7 @@ def handle_send( entity, author_user, "activitypub", to_user_key=public_key, parent_user=parent_user, ) payload["to"] = id - payload = json.dumps(payload) + payload = json.dumps(payload).encode("utf-8") except Exception as ex: logger.error("handle_send - failed to generate private payload for %s: %s", id, ex) continue