Fixes deletion
This commit is contained in:
parent
08c1553e71
commit
b393df8cab
3 changed files with 16 additions and 0 deletions
|
@ -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'},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue