Fixed a small federation issue when empty library summary

This commit is contained in:
Eliot Berriot 2019-03-19 17:53:17 +01:00
parent 584c29bff6
commit b70636c2d8
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
1 changed files with 1 additions and 1 deletions

View File

@ -642,7 +642,7 @@ class LibrarySerializer(PaginatedCollectionSerializer):
defaults={
"uploads_count": validated_data["totalItems"],
"name": validated_data["name"],
"description": validated_data["summary"],
"description": validated_data.get("summary"),
"followers_url": validated_data["followers"],
"privacy_level": privacy[validated_data["audience"]],
},