Fixes serialization of delete activity

This commit is contained in:
Mouse Reeve
2021-09-06 12:00:10 -07:00
parent ae81d6cf71
commit cb21099e0b
3 changed files with 2 additions and 12 deletions

View File

@ -142,7 +142,7 @@ class InboxActivities(TestCase):
"type": "Delete",
"actor": "https://example.com/users/test-user",
"to": ["https://www.w3.org/ns/activitystreams#Public"],
"object": book_list.remote_id,
"object": {"id": book_list.remote_id, "type": "List"}
}
views.inbox.activity_task(activity)
self.assertFalse(models.List.objects.exists())