Fix #553: Advertise public libraries properly in ActivityPub representations

This commit is contained in:
Eliot Berriot 2018-11-09 19:51:47 +01:00
parent a7956ca1fe
commit 51457aa889
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 5 additions and 4 deletions

View file

@ -560,7 +560,7 @@ class LibrarySerializer(PaginatedCollectionSerializer):
r = super().to_representation(conf)
r["audience"] = (
"https://www.w3.org/ns/activitystreams#Public"
if library.privacy_level == "public"
if library.privacy_level == "everyone"
else ""
)
r["followers"] = library.followers_url