From df1b151d69c2dc42905baeeee61f7111fe9a590c Mon Sep 17 00:00:00 2001 From: Marnanel Thurman Date: Tue, 30 Jul 2019 19:06:02 +0100 Subject: [PATCH] Created object gets reasonable 'to' field. 'to' and 'cc' get copied to Create activity. --- tests/test_inbox2.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_inbox2.py b/tests/test_inbox2.py index 2fafabc..e3e8323 100644 --- a/tests/test_inbox2.py +++ b/tests/test_inbox2.py @@ -35,7 +35,7 @@ OBJECT_FORM = { 'attributedTo': BOB_ID, "name": "Chris liked 'Minimal ActivityPub update client'", "object": "https://rhiaro.co.uk/2016/05/minimal-activitypub", - "to": ["https://rhiaro.co.uk/#amy", + "to": [ALICE_ID, "https://dustycloud.org/followers", "https://rhiaro.co.uk/followers/"], "cc": "https://e14n.com/evan" @@ -156,6 +156,8 @@ class TestInbox2(TestCase): content = { 'type': 'Create', 'object': OBJECT_FORM, + 'to': OBJECT_FORM['to'], + 'cc': OBJECT_FORM['cc'], }, )