mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 22:19:16 +02:00
Ignore not supported activity pub tag types instead of discarding the request
This commit is contained in:
parent
a7953a50ca
commit
07677c6685
3 changed files with 79 additions and 3 deletions
|
@ -258,9 +258,15 @@ class ActorSerializer(jsonld.JsonLdSerializer):
|
|||
)
|
||||
attributedTo = serializers.URLField(max_length=500, required=False)
|
||||
|
||||
tags = serializers.ListField(
|
||||
child=TagSerializer(), min_length=0, required=False, allow_null=True
|
||||
)
|
||||
tags = serializers.ListField(min_length=0, required=False, allow_null=True)
|
||||
|
||||
def validate_tags(self, tags):
|
||||
valid_tags = []
|
||||
for tag in tags:
|
||||
s = TagSerializer(data=tag)
|
||||
if s.is_valid():
|
||||
valid_tags.append(s.validated_data)
|
||||
return valid_tags
|
||||
|
||||
category = serializers.CharField(required=False)
|
||||
# languages = serializers.Char(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue