Test actor can now follow back

This commit is contained in:
Eliot Berriot 2018-04-03 19:48:50 +02:00
parent 2f6d3ae180
commit 6aa6f1d8f8
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
5 changed files with 192 additions and 21 deletions

View file

@ -120,7 +120,9 @@ class ActivitySerializer(serializers.Serializer):
type = value['type']
except KeyError:
raise serializers.ValidationError('Missing object type')
except TypeError:
# probably a URL
return value
try:
object_serializer = OBJECT_SERIALIZERS[type]
except KeyError: