Fixes deletion

This commit is contained in:
Mouse Reeve
2021-02-16 09:35:00 -08:00
parent 08c1553e71
commit b393df8cab
3 changed files with 16 additions and 0 deletions

View File

@ -422,6 +422,8 @@ class Inbox(TestCase):
self.assertFalse(self.status.deleted)
activity = {
'type': 'Delete',
"to": ["https://www.w3.org/ns/activitystreams#Public"],
"cc": ["https://example.com/user/mouse/followers"],
'id': '%s/activity' % self.status.remote_id,
'actor': self.remote_user.remote_id,
'object': {'id': self.status.remote_id, 'type': 'Tombstone'},
@ -451,6 +453,8 @@ class Inbox(TestCase):
self.assertEqual(models.Notification.objects.count(), 2)
activity = {
'type': 'Delete',
"to": ["https://www.w3.org/ns/activitystreams#Public"],
"cc": ["https://example.com/user/mouse/followers"],
'id': '%s/activity' % self.status.remote_id,
'actor': self.remote_user.remote_id,
'object': {'id': self.status.remote_id, 'type': 'Tombstone'},