From 0c88b63d785b0daa3b1e04063ca676af42c5c2e8 Mon Sep 17 00:00:00 2001 From: Laurin W Date: Tue, 21 Feb 2023 21:41:32 +0000 Subject: [PATCH] fix: allow blank summary field in ActorSerializer --- 2092.fix | 1 + api/funkwhale_api/federation/serializers.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 2092.fix diff --git a/2092.fix b/2092.fix new file mode 100644 index 000000000..0c6089767 --- /dev/null +++ b/2092.fix @@ -0,0 +1 @@ +Allow summary field of actors to be blank. This leaves actors valid that have a blank (`""`) summary field and allows follows from those. diff --git a/api/funkwhale_api/federation/serializers.py b/api/funkwhale_api/federation/serializers.py index c6e586023..ec71f98b9 100644 --- a/api/funkwhale_api/federation/serializers.py +++ b/api/funkwhale_api/federation/serializers.py @@ -247,6 +247,7 @@ class ActorSerializer(jsonld.JsonLdSerializer): truncate_length=common_models.CONTENT_TEXT_MAX_LENGTH, required=False, allow_null=True, + allow_blank=True ) followers = serializers.URLField(max_length=500, required=False) following = serializers.URLField(max_length=500, required=False, allow_null=True)