makes inbox csrf exempt
This commit is contained in:
parent
714202986d
commit
a3b7063e4b
2 changed files with 5 additions and 2 deletions
|
@ -76,7 +76,7 @@ class Signature(TestCase):
|
|||
digest = digest or make_digest(data)
|
||||
signature = make_signature(
|
||||
signer or sender, self.rat.inbox, now, digest)
|
||||
with patch('bookwyrm.incoming.handle_follow.delay'):
|
||||
with patch('bookwyrm.views.inbox.activity_task.delay'):
|
||||
with patch('bookwyrm.models.user.set_remote_server.delay'):
|
||||
return self.send(signature, now, send_data or data, digest)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue