Skip to content
Snippets Groups Projects
Verified Commit b70636c2 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed a small federation issue when empty library summary

parent 584c29bf
No related branches found
No related tags found
No related merge requests found
...@@ -642,7 +642,7 @@ class LibrarySerializer(PaginatedCollectionSerializer): ...@@ -642,7 +642,7 @@ class LibrarySerializer(PaginatedCollectionSerializer):
defaults={ defaults={
"uploads_count": validated_data["totalItems"], "uploads_count": validated_data["totalItems"],
"name": validated_data["name"], "name": validated_data["name"],
"description": validated_data["summary"], "description": validated_data.get("summary"),
"followers_url": validated_data["followers"], "followers_url": validated_data["followers"],
"privacy_level": privacy[validated_data["audience"]], "privacy_level": privacy[validated_data["audience"]],
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment