We are now able to receive a toot and react to it

This commit is contained in:
Eliot Berriot 2018-04-01 22:11:46 +02:00
parent 6fbf8fa44c
commit 3cf1a17087
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
12 changed files with 398 additions and 48 deletions

View file

@ -45,6 +45,7 @@ class SignatureAuthentication(authentication.BaseAuthentication):
return serializer.build()
def authenticate(self, request):
setattr(request, 'actor', None)
actor = self.authenticate_actor(request)
user = AnonymousUser()
setattr(request, 'actor', actor)