mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 22:19:16 +02:00
Disable download by default on track urls exposed over federation
This commit is contained in:
parent
828f602b79
commit
dd9cca432d
6 changed files with 45 additions and 6 deletions
|
@ -1159,7 +1159,7 @@ class UploadSerializer(jsonld.JsonLdSerializer):
|
|||
"duration": instance.duration,
|
||||
"url": [
|
||||
{
|
||||
"href": utils.full_url(instance.listen_url),
|
||||
"href": utils.full_url(instance.listen_url_no_download),
|
||||
"type": "Link",
|
||||
"mediaType": instance.mimetype,
|
||||
},
|
||||
|
@ -1235,7 +1235,7 @@ class ChannelUploadSerializer(serializers.Serializer):
|
|||
{
|
||||
"type": "Link",
|
||||
"mimeType": upload.mimetype,
|
||||
"href": utils.full_url(upload.listen_url),
|
||||
"href": utils.full_url(upload.listen_url_no_download),
|
||||
},
|
||||
{
|
||||
"type": "Link",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue