mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 06:49:24 +02:00
Test actor can now follow back
This commit is contained in:
parent
2f6d3ae180
commit
6aa6f1d8f8
5 changed files with 192 additions and 21 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue