mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 12:49:29 +02:00
Fix #553: Advertise public libraries properly in ActivityPub representations
This commit is contained in:
parent
a7956ca1fe
commit
51457aa889
4 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue